code: protected void checkSystemLocks(CmsDbContext dbc, CmsResource resource) throws CmsException {
  
          if (m_lockManager.hasSystemLocks(dbc, resource)) {
              throw new CmsLockException(
                  Messages.get().container(
                      Messages.ERR_RESOURCE_SYSTEM_LOCKED_1,
                      dbc.removeSiteRoot(resource.getRootPath())));
          }
      }
docs: Checks if the given resource contains a resource that has a system lock.<p>
  
  @param dbc the current database context
  @param resource the resource to check
  
  @throws CmsException in case there is a system lock contained in the given resource