ChannelBuffer slice = in.copy();
byte[] payload = slice.array();
in.skipBytes(in.readableBytes());
continueSet(messageEvent.getChannel(), status, payload, channelHandlerContext);
} else {
throw new InvalidProtocolStateException("invalid protocol state");
}
} finally {
// Now indicate that we need more for this command by changing the
// session status's state.