writeRequest(getLastError, encoder, outputBuffer);
}
// ChannelBuffer を生成
ChannelBuffer channelBuffer = ChannelBuffers.buffer(outputBuffer.size());
outputBuffer.pipe(new ChannelBufferOutputStream(channelBuffer));
// ChannelFuture を取得し RequestFuture に設定
ChannelFuture channelFuture = e.getFuture();
future.setChannelFuture(channelFuture);