public void sessionAvailable(LocalClientSession session, Presence presence) {
        if (session.getAuthToken().isAnonymous()) {
            // Anonymous session always have resources so we only need to add one route. That is
            // the route to the anonymous session
            routingTable.addClientRoute(session.getAddress(), session);
        }
        else {
            // A non-anonymous session is now available
            // Add route to the new session
            routingTable.addClientRoute(session.getAddress(), session);
            // Broadcast presence between the user's resources
            broadcastPresenceOfOtherResource(session);
        }
    }
Notification message sent when a client sent an available presence for the session. Making
the session available means that the session is now eligible for receiving messages from
other clients. Sessions whose presence is not available may only receive packets (IQ packets)
from the server. Therefore, an unavailable session remains invisible to other clients.

@param session the session that receieved an available presence.
@param presence the presence for the session.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java