585960616263646566
@Override public void attain(Lock l) throws LockNotAcquiredException { String owner = attainLockOrReturnOwner(l); if (owner != null) { throw new LockNotAcquiredException(l, "Already locked by user: " + owner); } }