docs: protected boolean containsSubResources(CmsObject cms, CmsResource folder) throws CmsException {
  
          String folderPath = cms.getSitePath(folder);
          List<CmsResource> subResources = cms.readResources(folderPath, CmsResourceFilter.ALL, true);
          for (CmsResource resource : subResources) {
              if (!containsResource(resource)) {
                  return false;
              }
          }
          return true;
      }