// 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
ctx.setMessage(bb.flip());
// Instruct the FilterChain to call the next filter