message.setTimestamp(System.currentTimeMillis());
Section section = protonMessage.getBody();
if (section instanceof AmqpValue)
{
AmqpValue amqpValue = (AmqpValue) section;
Object value = amqpValue.getValue();
if (value instanceof String)
{
message.getBodyBuffer().writeNullableString((String) value);
}
else if (value instanceof Binary)