public static <T extends Chain> void generate(ChainsConfig.Builder builder, Collection<T> chains) {
        for (T chain : chains) {
            builder.chains(getChain(chain));
        }
     }
@author Tony Vaagenes
@author gjoranv

Generates config for a all the chains.
config-model/src/main/java/com/yahoo/vespa/model/container/component/chain/ChainsConfigGenerator.java