public void addPreAuthenticatedSession(@Nonnull final LocalClientSession session) {
        if (session.isAuthenticated()) {
            throw new IllegalArgumentException("Session is already authenticated: " + session);
        }
        preAuthenticatedSessions.put(session.getStreamID(), session);
    }
Registers a client session as a session that has been established, but has not been authenticated yet.

@param session The session to register as a pre-authenticated session.
xmppserver/src/main/java/org/jivesoftware/openfire/LocalSessionManager.java