public static EncodedMessage transform(ServerMessage message, int deliveryCount)
{
long messageFormat = message.getLongProperty(MESSAGE_FORMAT);
Integer size = message.getIntProperty(PROTON_MESSAGE_SIZE_SS);
Header header = populateHeader(message, deliveryCount);
DeliveryAnnotations deliveryAnnotations = populateDeliveryAnnotations(message);
MessageAnnotations messageAnnotations = populateMessageAnnotations(message);
Properties props = populateProperties(message);
ApplicationProperties applicationProperties = populateApplicationProperties(message);
Section section = populateBody(message);