public boolean releaseLock(String lockName){
  if (lockName == null || lockName.isEmpty()) {
    s_logger.info("No lock name specified.");
    return false;
  }
  try {
    InterProcessLock lock=s_acquiredLocks.get(lockName);
    if (lock != null) {
      s_acquiredLocks.remove(lockName);
      lock.release();
      s_logger.info("Released lock: " + lockName);
    }
 else {
      return false;
    }
    return true;
  }
 catch (  Exception e) {
    s_logger.error("Release of lock: {} failed with Exception: ",lockName,e);
    return false;
  }
}

public boolean releaseLock ( String lockName ) { if ( lockName == null || lockName . isEmpty ( ) ) { s_logger . info ( "No lock name specified." ) ; return false ; } try { InterProcessLock lock = s_acquiredLocks . get ( lockName ) ; if ( lock != null ) { s_acquiredLocks . remove ( lockName ) ; lock . release ( ) ; s_logger . info ( "Released lock: " + lockName ) ; } else { return false ; } return true ; } catch ( Exception e ) { s_logger . error ( "Release of lock: {} failed with Exception: " , lockName , e ) ; return false ; } }
release the passed lock .
