message.setJMSMessageID(producerKey + sequenceNumber);
}
//transform to our own message format here
ActiveMQMessage msg = ActiveMQMessageTransformation.transformMessage(message);
if (connection.isCopyMessageOnSend()){
msg = msg.shallowCopy();
}
//clear identity - incase forwared on
msg.setJMSMessageIdentity(null);
msg.setExternalMessageId(id != null);
msg.setSequenceNumber(sequenceNumber);