code: public synchronized void onReceive(final Packet packet, final Client client) throws IOException
      {
          if (globalHandler != null) globalHandler.onReceive(packet, client);
  
          final PacketHandler packetHandler = registry.get(packet.getPacketID());
          if (packetHandler == null)
          {
              if (defaultHandler != null) defaultHandler.handlePacket(packet, client);
          }
          else packetHandler.handlePacket(packet, client);
      }
docs: Calls specified handler for Packet ID, or the default handler (if set)
  @param packet New incoming Packet