docs: protected List<CmsResource> readTree(String rootPath) throws CmsException {
  
          rootPath = CmsFileUtil.removeTrailingSeparator(rootPath);
          CmsResource base = m_cms.readResource(rootPath);
  
          I_CmsResourceType resType = OpenCms.getResourceManager().getResourceType(base);
          List<CmsResource> result = new ArrayList<CmsResource>();
          if (resType.isFolder()) {
              rootPath = CmsStringUtil.joinPaths(rootPath, "/");
              List<CmsResource> subResources = m_cms.readResources(rootPath, CmsResourceFilter.ALL, true);
              result.add(base);
              result.addAll(subResources);
          } else {
              result.add(base);
          }
          for (CmsResource resource : result) {
              m_cachedResources.put(resource.getStructureId(), resource);
          }
  
          return result;
      }