in src/main/java/org/apache/sling/sitemap/impl/SitemapScheduler.java [175:196]
public Set<String> getApplicableNames(Resource sitemapRoot) {
if (isExcluded(sitemapRoot)) {
return Collections.emptySet();
}
Set<String> onDemandNames = generatorManager.getOnDemandNames(sitemapRoot);
Set<String> toSchedule = generatorManager.getGenerators(sitemapRoot).entrySet().stream()
.filter(entry -> includeGenerators == null
|| includeGenerators.contains(entry.getValue().getClass().getName()))
.filter(entry -> excludeGenerators == null
|| !excludeGenerators.contains(entry.getValue().getClass().getName()))
.filter(entry -> !onDemandNames.contains(entry.getKey()))
.map(Map.Entry::getKey)
.collect(Collectors.toSet());
// limit to the configured names
if (names != null) {
toSchedule.retainAll(names);
}
return toSchedule;
}