docs: protected List<CmsResource> getMissingSubResources(CmsObject cms, List<CmsResource> folders) throws CmsException {
  
          List<CmsResource> result = new ArrayList<CmsResource>();
          CmsObject rootCms = OpenCms.initCmsObject(cms);
          rootCms.getRequestContext().setSiteRoot("");
          for (CmsResource folder : folders) {
              List<CmsResource> subResources = rootCms.readResources(folder.getRootPath(), CmsResourceFilter.ALL, true);
              for (CmsResource resource : subResources) {
                  if (!containsResource(resource)) {
                      result.add(resource);
                  }
              }
          }
          return result;
      }