docs: protected boolean resourceIsValid(CmsResource resource) {
  
          if (!resource.getRootPath().startsWith(m_basePath)) {
              return false;
          }
          if (m_requireFile & resource.isFolder()) {
              return false;
          }
          if (m_requireFolder & resource.isFile()) {
              return false;
          }
          return true;
      }