return result;
}
public void lock(String lockPath) {
assert mLocks.get(lockPath) == null: "mLocks.get(" + lockPath + ") == null";
DistributedLock distributedLock = new DistributedLockImpl(mZookeeperClient, lockPath);
mLocks.put(lockPath, distributedLock);
distributedLock.lock();
}