receiver.advance();
byte[] bytes = new byte[buffer.readableBytes()];
buffer.readBytes(bytes);
buffer.clear();
MessageImpl msg = new MessageImpl();
msg.decode(bytes, 0, bytes.length);
Object action = ((AmqpValue) msg.getBody()).getValue();
if (action instanceof Declare)
{
Transaction tx = protonSession.getServerSession().getCurrentTransaction();
Declared declared = new Declared();