// In non-development mode, only map this Filter to specific resources
// Map the forwarding filter to all the resources we found.
for (String resource : collectedViews.keySet()) {
facesViewsRegistration.addMappingForUrlPatterns(null, isFilterAfterDeclaredFilters(servletContext), resource);
}
// Additionally map the filter to all paths that were scanned and which are also directly
// accessible. This is to give the filter an opportunity to block these.
for (String path : getPublicRootPaths(servletContext)) {