code: private void clearLock() throws CmsException {
  
          if ((m_lockActionRecord != null) && (m_lockActionRecord.getChange() == LockChange.locked)) {
              CmsResource updatedRes = m_cms.readResource(m_resource.getStructureId(), CmsResourceFilter.ALL);
              try {
                  m_cms.unlockResource(updatedRes);
              } catch (CmsLockException e) {
                  LOG.warn(e.getLocalizedMessage(), e);
              }
              m_lockActionRecord = null;
          }
      }
docs: Clears the resource lock.<p>
  
  @throws CmsException in case reading the resource fails