public void removeComponentSession( LocalComponentSession session )
    {
        // Remove the session
        localSessionManager.getComponentsSessions().remove(session);

        // Remove track of the cluster node hosting the external component.
        CacheUtil.removeValueFromMultiValuedCache( componentSessionsCache, session.getAddress().toString(), server.getNodeID() );
    }
Creates a new {@code ClientSession} with the specified streamID.

@param connection the connection to create the session from.
@param id the streamID to use for the new session.
@param language The language to use for the session
@param wait The longest time it is permissible to wait for a response.
@param hold The maximum number of simultaneous waiting requests.
@param isEncrypted True if all connections on this session should be encrypted, and false if they should not.
@param maxPollingInterval The max interval within which a client can send polling requests.
@param maxRequests The max number of requests it is permissible for the session to have open at any one time.
@param maxPause The maximum length of a temporary session pause (in seconds) that the client MAY request.
@param defaultInactivityTimeout The default inactivity timeout of this session.
@param majorVersion the major version of BOSH specification which this session utilizes.
@param minorVersion the minor version of BOSH specification which this session utilizes.
@return a newly created session.
@throws UnauthorizedException if the server has not been initialised
@throws UnknownHostException if no IP address for the peer could be found,
xmppserver/src/main/java/org/jivesoftware/openfire/SessionManager.java