public Locale getLocaleForSession(JID address)
    {
        if (address == null || !XMPPServer.getInstance().isLocal(address)) {
            return null;
        }

        final ClientSession session = getSession(address);
        if (session == null) {
            return null;
        }

        return session.getLanguage();
    }
Returns true if the specified address belongs to a preauthenticated session. Preauthenticated
sessions are only available to the local cluster node when running inside a cluster.

@param address the address of the session.
@return true if the specified address belongs to a preauthenticated session.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java