properties.setMessageId(message.getMessageID());
if (message.getAddress() != null)
{
properties.setTo(message.getAddress().toString());
}
if (typedProperties.containsProperty(USER_ID_SS))
{
properties.setUserId(new Binary(typedProperties.getBytesProperty(USER_ID_SS)));
}
if (typedProperties.containsProperty(SUBJECT_SS))
{