{
int oldPosition = dest.position();
try
{
DataOutputStream dataOutputStream = new DataOutputStream(new ByteBufferOutputStream(dest));
EncodingUtils.writeInteger(dataOutputStream, _contentHeaderBody.getSize());
_contentHeaderBody.writePayload(dataOutputStream);
EncodingUtils.writeShortStringBytes(dataOutputStream, _messagePublishInfo.getExchange());
EncodingUtils.writeShortStringBytes(dataOutputStream, _messagePublishInfo.getRoutingKey());
byte flags = 0;