@SuppressWarnings( "LockAcquiredButNotSafelyReleased" )
    public AutoCloseableLock lock() throws IllegalStateException {
        checkNotReleased();
        lock.lock();
        return autoCloseable;
    }
Acquires the lock, blocking indefinitely.

@return An AutoCloseableLock
@throws IllegalStateException if this lock has already been released by the last thread to hold it
xmppserver/src/main/java/org/jivesoftware/util/AutoCloseableReentrantLock.java