/** * Returns true if the given lock object currently has a write lock (as * returned by {@link #getWriteLockMode()}) held on it. */ public boolean lockedForWrite(final ExclusiveSharedLockObject lockObj, final Object owner, final Object context) { return lockObj.hasExclusiveSharedLock(owner, context); }