public static SessionEvent createDisconnectEvent(Session session) {
        return new SessionEvent(session, SESSION_DISCONNECT, null);
    }
Create an event associated with the closing of a session.

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