code: public String queryLock (NodeObject.Lock lock)
      {
          for (NodeObject nodeobj : getNodeObjects()) {
              if (nodeobj.locks.contains(lock)) {
                  return nodeobj.nodeName;
              }
          }
          return null;
      }
docs: Finds the owner of the specified lock (if any) among this node and its peers.  This answer
  is not definitive, as the lock may be in the process of resolving.