docs: protected boolean readNonTemplateResourcesToExport(
          CmsObject cms,
          List<CmsPublishedResource> publishedResources,
          List<CmsStaticExportData> resourcesToExport)
      throws CmsException {
  
          CmsStaticExportManager manager = OpenCms.getStaticExportManager();
          boolean templatesFound = false;
          // loop through all resources
          Iterator<CmsPublishedResource> i = publishedResources.iterator();
          while (i.hasNext()) {
              CmsPublishedResource pubRes = i.next();
              String vfsName = pubRes.getRootPath();
              // only process this resource, if it is within the tree of allowed folders for static export
              if (manager.getExportFolderMatcher().match(vfsName)) {
                  // get the export data object, if null is returned, this resource cannot be exported
                  CmsStaticExportData exportData = manager.getVfsExportData(cms, vfsName);
                  if (exportData != null) {
                      CmsResource resource = null;
                      if (pubRes.isFile()) {
                          resource = exportData.getResource();
                      } else {
                          // the resource is a folder, check if PROPERTY_DEFAULT_FILE is set on folder
                          try {
                              resource = cms.readDefaultFile(vfsName);
                              //                            String defaultFileName = cms.readPropertyObject(
                              //                                vfsName,
                              //                                CmsPropertyDefinition.PROPERTY_DEFAULT_FILE,
                              //                                false).getValue();
                              //                            if (defaultFileName != null) {
                              //                                resource = cms.readResource(vfsName + defaultFileName);
                              //                            }
                          } catch (CmsException e) {
                              // resource is (still) a folder, check default files specified in configuration
                              for (int j = 0; j < OpenCms.getDefaultFiles().size(); j++) {
                                  String tmpResourceName = vfsName + OpenCms.getDefaultFiles().get(j);
                                  try {
                                      resource = cms.readResource(tmpResourceName);
                                      break;
                                  } catch (CmsException e1) {
                                      // ignore all other exceptions and continue the lookup process
                                  }
                              }
                          }
                      }
                      if ((resource != null) && resource.isFile()) {
                          // check loader for current resource if it must be processed before exported
                          I_CmsResourceLoader loader = OpenCms.getResourceManager().getLoader(resource);
                          if (!loader.isStaticExportProcessable()) {
                              // this resource must not be processed, so export it (if it's not marked as deleted)
                              if (!pubRes.getState().isDeleted()) {
                                  // mark the resource for export to the real file system
                                  resourcesToExport.add(exportData);
                              }
                          } else {
                              // the resource is a template resource or a folder, so store the name of it in the DB for further use
                              templatesFound = true;
                              cms.writeStaticExportPublishedResource(
                                  exportData.getRfsName(),
                                  CmsStaticExportManager.EXPORT_LINK_WITHOUT_PARAMETER,
                                  "",
                                  System.currentTimeMillis());
                          }
                      }
                  }
              }
          }
  
          return templatesFound;
      }