IoBuffer in = (IoBuffer) message;
ProtocolDecoder decoder = getDecoder0(session);
ProtocolDecoderOutput decoderOut = getDecoderOut(session, nextFilter);
while (in.hasRemaining()) {
int oldPos = in.position();
try {
synchronized (decoderOut) {
decoder.decode(session, in, decoderOut);
}
// Finish decoding if no exception was thrown.