private static void addFilterToContainerCluster(ContainerModel containerModel) {
        if (!(containerModel.getCluster() instanceof ApplicationContainerCluster cluster)) return;
        Http http = cluster.getHttp();
        if (http.getAccessControl().isPresent()) {
            Chain<Filter> chain = http.getFilterChains()
                    .allChains()
                    .getComponent(AccessControl.ACCESS_CONTROL_CHAIN_ID);
            if (chain == null) return;
            if (!chain.getInnerComponents().isEmpty()) return;
            chain.addInnerComponent(new DummyAccessControlFilterModel());
        }
    }
A {@link ConfigModelBuilder} that configures a dummy filter component to the {@link AccessControl#ACCESS_CONTROL_CHAIN_ID} filter chain.

@author bjorncs
config-model/src/main/java/com/yahoo/config/model/test/ModelBuilderAddingAccessControlFilter.java