public static SessionEvent createStreamEvent(Session session) {
        return new SessionEvent(session, SESSION_STREAM, null);
    }
Create an event associated with the establishment of an XMPP session.
A connect event that is not followed by a stream event indicates
the connection was rejected.

@param session the session that began streaming.
@return an event representing the connection event.
xmppserver/src/main/java/org/jivesoftware/openfire/audit/SessionEvent.java