public static LocalLock getLock(Object key, Cache cache) {
        return new LocalLock(new CacheKey(cache, key));
    }
Keep track of the locks that are currently being used.
xmppserver/src/main/java/org/jivesoftware/util/cache/lock/LocalLock.java