public void unlock(Object key){
  String uid=String.valueOf(key);
  Transaction tr=lockedUIDHashMap.get(uid);
  if (tr == null) {
    return;
  }
  try {
    tr.commit();
  }
 catch (  Exception e) {
    logger.warn("Failed to commit transaction and unlocking the object, ignoring",e);
  }
 finally {
    lockedUIDHashMap.remove(uid);
  }
}

public void unlock ( Object key ) { String uid = String . valueOf ( key ) ; Transaction tr = lockedUIDHashMap . get ( uid ) ; if ( tr == null ) { return ; } try { tr . commit ( ) ; } catch ( Exception e ) { logger . warn ( "Failed to commit transaction and unlocking the object, ignoring" , e ) ; } finally { lockedUIDHashMap . remove ( uid ) ; } }
unlocks the given lock on the key
