public Lock getLock() {
        return lock;
    }
Returns a mutex that should be obtained before accessing any immutable field of an instance of this class.

@return A mutex.
xmppserver/src/main/java/org/jivesoftware/openfire/commands/SessionData.java