content = new byte[256];
for (int i=0; i < 256; i++) {
content[i] = (byte)i;
}
msg.writeBytes(content, 0, content.length);
XBDestination dest = new XBDestination("someTopic", null);
msg.setJMSDestination(dest);
msg.reset();
MsgUnit msgUnit = MessageHelper.convertToMessageUnit(new Global(), msg);