@Nullable
    public HttpSession getSession() {
        return session;
    }
Returns the session that this connection belongs to.

Although technically, this method can return null, it is expected that a session is bound to this connection
almost immediately after it is created.

@return the session that this connection belongs to.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpConnection.java