public static SessionEvent createConnectEvent(Session session) {
        return new SessionEvent(session, SESSION_CONNECT, null);
    }
Create an event associated with the initial connection
of a session before the stream is created.

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