String realName = propertyName.toString();
if (realName.startsWith(MESSAGE_ANNOTATIONS))
{
SimpleString value = (SimpleString) typedProperties.getProperty(propertyName);
Symbol symbol = Symbol.getSymbol(realName.replace(MESSAGE_ANNOTATIONS, ""));
messageAnnotations.getValue().put(symbol, value.toString());
}
}
MessageImpl protonMessage = new MessageImpl(header, deliveryAnnotations, messageAnnotations, props, applicationProperties, section, footer);
protonMessage.setMessageFormat(getMessageFormat(message.getLongProperty(new SimpleString(PROTON_MESSAGE_FORMAT))));