docs: public Set<CmsPublishedResource> getExportResources(CmsObject cms) throws CmsException {
  
          Set<CmsPublishedResource> resources = new HashSet<CmsPublishedResource>(128);
          Iterator<String> itExpRes = m_exportResources.iterator();
          while (itExpRes.hasNext()) {
              String exportRes = itExpRes.next();
              // read all from the configured node path, exclude resources flagged as internal
              if (cms.existsResource(exportRes)) {
                  // first add the resource itself
                  CmsResource res = cms.readResource(exportRes);
                  resources.add(new CmsPublishedResource(res));
                  if (res.isFolder()) {
                      // if the resource is a folder add also all sub-resources
                      List<CmsResource> vfsResources = cms.readResources(
                          exportRes,
                          CmsResourceFilter.ALL.addExcludeFlags(CmsResource.FLAG_INTERNAL));
                      // loop through the list and create the list of CmsPublishedResources
                      Iterator<CmsResource> itRes = vfsResources.iterator();
                      while (itRes.hasNext()) {
                          CmsResource vfsResource = itRes.next();
                          CmsPublishedResource resource = new CmsPublishedResource(vfsResource);
                          resources.add(resource);
                      }
                  }
              }
          }
          return resources;
      }