}
// XXX: this is a bit of a hack but it eliminates duplicate
// code, further refactor will fix this
if (_frameType == AMQP_FRAME_TYPE) {
TransportFrame frame = new TransportFrame(channel, (FrameBody) frameBody, Binary.create(originalPayload));
TransportImpl.log(_logCtx, TransportImpl.OUTGOING, frame);
if( _protocolTracer!=null )
{
_protocolTracer.sentFrame(frame);