public void outgoingServerSessionCreated(LocalOutgoingServerSession session) {
        // Register to receive close notification on this session so we can
        // remove its route from the sessions set
        session.getConnection().registerCloseListener(outgoingServerListener, session);
    }
Notification message that a new OutgoingServerSession has been created. Register a listener
that will react when the connection gets closed.

@param session the newly created OutgoingServerSession.
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java