private Set<Phase> readPhases(Element parentElement) {
        Set<Phase> phases = new LinkedHashSet<>();

        for (Element phaseSpec : XML.getChildren(parentElement, "phase")) {
            String name = XmlHelper.getIdString(phaseSpec);
            Dependencies dependencies = new DependenciesBuilder(phaseSpec).build();
            phases.add(new Phase(name, dependencies));
        }
        return phases;
    }
Creates a partial ChainSpecification without inner components
@author Tony Vaagenes
config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/ChainSpecificationBuilder.java