@Override
protected boolean doDecode(IoSession session, IoBuffer buffer, ProtocolDecoderOutput out) throws Exception {
logger.trace("Decoding message");
InputStream in = buffer.asInputStream();
try {
ServerPacket message = decoder.decode(in, false);
if (message == null) {
return false;
}
out.write(message);