BytesMessage sourceBytes = BytesMessage.class.cast(jmsMessage);
if (sourceBytes.getBodyLength() > Integer.MAX_VALUE) {
throw JCAMessages.MESSAGES.theSizeOfMessageContentExceedsBytesThatIsNotSupportedByThisMessageComposer("" + Integer.MAX_VALUE);
}
byte[] bytearr = new byte[(int)sourceBytes.getBodyLength()];
sourceBytes.readBytes(bytearr);
syMessage.setContent(bytearr);
} else if (jmsMessage instanceof MapMessage) {
MapMessage sourceMap = MapMessage.class.cast(jmsMessage);
Map<String,Object> body = new HashMap<String,Object>();