code: private boolean generateLockDiscovery(String path, Element elem, HttpServletRequest req) {
  
          CmsRepositoryLockInfo lock = m_session.getLock(path);
  
          if (lock != null) {
  
              Element lockElem = addElement(elem, TAG_LOCKDISCOVERY);
              addLockElement(lock, lockElem, generateLockToken(req, lock));
  
              return true;
          }
  
          return false;
      }
docs: Print the lock discovery information associated with a path.<p>
  
  @param path the path to the resource
  @param elem the dom element where to add the lock discovery elements
  @param req the servlet request we are processing
  
  @return true if at least one lock was displayed