UUID messageId, int deliveryMode, int priority, long timeToLive, boolean mandatory,
boolean immediate, boolean wait) throws JMSException
{
message.prepareForSending();
AMQMessageDelegate_0_10 delegate = (AMQMessageDelegate_0_10) message.getDelegate();
DeliveryProperties deliveryProp = delegate.getDeliveryProperties();
MessageProperties messageProps = delegate.getMessageProperties();
// On the receiving side, this will be read in to the JMSXUserID as well.
messageProps.setUserId(userIDBytes);
if (messageId != null)