code: public LockData getPendingLock(String nodeId)
     {
        if (pendingLocks.contains(nodeId))
        {
           return lockedNodes.get(nodeId);
        }
        else
        {
           return null;
        }
     }
docs: Return pending lock.
  
  @param nodeId - ID of locked node
  @return pending lock or null