final MemoryManager memoryManager =
ctx.getConnection().getTransport().getMemoryManager();
// Write the response to the buffer
final Buffer bb = memoryManager.allocate(request.getResponseSize());
request.writeToBuffer(bb);
// Allow Grizzly core to dispose the buffer, once it's written
bb.allowBufferDispose(true);
// Set the Buffer as a context message