@Override
public MessageCodec<?> readHeader(ByteBuf buf) throws UnknownPacketException {
int opcode = buf.readUnsignedByte();
MessageCodec<?> codec = getCodecLookupService().find(opcode);
if (codec == null) {
throw new UnknownPacketException(opcode);
}
return codec;
}