mapRval.getBodyProperty().add(xmlProperty);
}
} else if (message instanceof BytesMessage) {
rval = factory.createXMLBytesMessage();
XMLBytesMessage bytesRval = (XMLBytesMessage) rval;
BytesMessage bytesMessage = (BytesMessage) message;
ByteArrayOutputStream bosream = new ByteArrayOutputStream();
bytesMessage.reset();
try {
for (;;) {
bosream.write(bytesMessage.readByte());
}
} catch (MessageEOFException ex) {
// NOP
}
bytesRval.setBytes(new String(base64EncoderTL.get().encode(bosream.toByteArray())));
} else if (message instanceof ObjectMessage) {
rval = factory.createXMLObjectMessage();
XMLObjectMessage objectRval = (XMLObjectMessage) rval;
ObjectMessage objectMessage = (ObjectMessage) message;