code: protected void peerAddedLock (String nodeName, NodeObject.Lock lock)
      {
          // check for hijacking
          if (_nodeobj.locks.contains(lock)) {
              log.warning("Client hijacked lock owned by this node", "lock", lock, "node", nodeName);
              droppedLock(lock);
          }
  
          // notify the handler, if any
          LockHandler handler = _locks.get(lock);
          if (handler != null) {
              handler.peerAddedLock(nodeName);
          }
      }
docs: Called when a peer adds a lock.