code: public void lockResource(CmsResource resource) throws CmsException {
  
          getResourceType(resource).lockResource(this, m_securityManager, resource, CmsLockType.EXCLUSIVE);
      }
docs: Locks a resource.<p>
  
  This will be an exclusive, persistent lock that is removed only if the user unlocks it.<p>
  
  @param resource the resource to lock
  
  @throws CmsException if something goes wrong