private static Collection<Phase> createPhases(List<ChainsConfig.Chains.Phases> phases) {
        Collection<Phase> result = new ArrayList<>();
        for (ChainsConfig.Chains.Phases phase : phases) {
            result.add(
                    new Phase(phase.id(), createDependencies(null, phase.before(), phase.after())));
        }
        return result;
    }
Builds a chains model from config.

@author Tony Vaagenes
container-core/src/main/java/com/yahoo/component/chain/model/ChainsModelBuilder.java