for(ByteBuffer payload : payloads)
{
allPayload.put(payload);
}
allPayload.flip();
SectionDecoder decoder = _session.getSectionDecoder();
try
{
sections = decoder.parseAll(allPayload);
}
catch (AmqpErrorException e)
{
// todo - throw a sensible error
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.