private static void removeEmptyChains(ChainRegistry<FilterWrapper> chainRegistry) {
        chainRegistry.allComponents().stream()
                .filter(chain -> chain.components().isEmpty())
                .map(Chain::getId)
                .peek(id -> log.warning("Removing empty filter chain: " + id))
                .forEach(chainRegistry::unregister);
    }
Creates JDisc request/response filter chains.

@author Tony Vaagenes
@author bjorncs
container-core/src/main/java/com/yahoo/container/http/filter/FilterChainRepository.java