@Override
    public void initialize(XMPPServer server) {
        super.initialize(server);
        serverName = server.getServerInfo().getXMPPDomain();
        routingTable = server.getRoutingTable();
        updateHandler = server.getPresenceUpdateHandler();
        subscribeHandler = server.getPresenceSubscribeHandler();
        presenceManager = server.getPresenceManager();
        multicastRouter = server.getMulticastRouter();
        sessionManager = server.getSessionManager();
        entityCapsManager = server.getEntityCapabilitiesManager();
    }
Routes presence packets.

@param packet the packet to route.
@throws NullPointerException if the packet is null.
xmppserver/src/main/java/org/jivesoftware/openfire/PresenceRouter.java