code: public CmsLock getLock() {
  
          if (m_lock == null) {
              try {
                  m_lock = getCms().getLock(m_resource);
              } catch (Throwable e) {
                  m_lock = CmsLock.getNullLock();
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
          return m_lock;
      }
docs: Returns the the lock for the given resource.<p>
  
  @return the lock the given resource