code: private String generateLockToken(HttpServletRequest req, CmsRepositoryLockInfo lock) {
  
          String lockTokenStr = req.getServletPath()
              + "-"
              + req.getUserPrincipal()
              + "-"
              + lock.getOwner()
              + "-"
              + lock.getPath()
              + "-"
              + m_secret;
  
          return MD5_ENCODER.encode(m_md5Helper.digest(lockTokenStr.getBytes()));
      }
docs: Generates a lock token out of the lock and some information out of the
  request to make it unique.<p>
  
  @param req the servlet request we are processing
  @param lock the lock with the information for the lock token
  
  @return the generated lock token