public void closeClientSession(String connectionManagerDomain, StreamID streamID) {
        Map<StreamID, LocalClientSession> sessions = sessionsByManager.get(connectionManagerDomain);
        if (sessions != null) {
            Session session = sessions.remove(streamID);
            if (session != null) {
                Log.debug( "Closing session: {}", session );
                session.close();
            }
        }
    }
Closes an existing client session that was established through a connection manager.

@param connectionManagerDomain the connection manager that is handling the connection
       of the session.
@param streamID the stream ID created by the connection manager for the session.
xmppserver/src/main/java/org/jivesoftware/openfire/multiplex/ConnectionMultiplexerManager.java