baos.write(buffer,0,size);
}
byte[] serverData = baos.toByteArray();
final FrameCreatingMethodProcessor methodProcessor = new FrameCreatingMethodProcessor(ProtocolVersion.v0_91);
AMQDecoder decoder = new ClientDecoder(methodProcessor);
decoder.decodeBuffer(ByteBuffer.wrap(serverData));
evaluator.evaluate(socket, methodProcessor.getProcessedMethods());
}