else {
lockEntry = new InterProcessReadWriteLock(zk.getClient(), LOCKS_NODE + "/" + resource);
zkLocks.put(resource, lockEntry);
}
}
InterProcessMutex readLock = lockEntry.readLock();
return acquireLock(wait, readLock, resource);
}
/**
* Obtain a WRITE lock for a source.