public boolean isActiveLock(){
synchronized (activeLocks) {
    return !activeLocks.isEmpty();
  }
}

public boolean isActiveLock ( ) { synchronized ( activeLocks ) { return ! activeLocks . isEmpty ( ) ; } }
if any locks in this collection that are still active .
