@Override
    public boolean isDetached() {
        return this.sessionManager.isDetached(this);
    }
Creates a session with an underlying connection and permission protection.

@param serverName domain of the XMPP server where the new session belongs.
@param connection The connection we are proxying.
@param streamID unique identifier for this session.
@param language The language to use for this session.
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalSession.java