@Override
    public void initialize(XMPPServer server) {
        super.initialize(server);
        localServer = server;
        rosterManager = server.getRosterManager();
        presenceManager = server.getPresenceManager();
        deliverer = server.getPacketDeliverer();
        messageStore = server.getOfflineMessageStore();
        sessionManager = server.getSessionManager();
        userManager = server.getUserManager();
        routingTable = server.getRoutingTable();
        directedPresencesCache = CacheFactory.createCache(PRESENCE_CACHE_NAME);
        // TODO Add as route listener (to remove direct presences info for removed routes). Mainly for c2s sessions which is uncommon.
        // Listen to cluster events
        ClusterManager.addListener(this, 20);
    }
Checks if the packet is a presence stanza that intends to reflect an update back to the client from which the update originated.

@param packet The stanza (cannot be null.
@return true if the packet is presence reflection, otherwise false.
xmppserver/src/main/java/org/jivesoftware/openfire/handler/PresenceUpdateHandler.java