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;
ByteArrayOutputStream bostream = new ByteArrayOutputStream();
ObjectOutputStream oostream = new ObjectOutputStream(bostream);
oostream.writeObject(objectMessage.getObject());
oostream.flush();
byte b[] = base64EncoderTL.get().encode(bostream.toByteArray());
String s = new String(b, "ASCII");
objectRval.setObject(s);
}
if (message.getJMSReplyTo() != null) {
rval.setJMSReplyTo(JMSUtils.getDestinationName(message.getJMSReplyTo()));
rval.setJMSReplyToDomain(Domain.getDomain(message.getJMSReplyTo()).getId());