public ChainSpecification getChainSpecification() {
        Collection<ComponentSpecification> innerComponentSpecifications = new ArrayList<>();

        for (ChainedComponent innerComponent : getInnerComponents()) {
            innerComponentSpecifications.add(innerComponent.getGlobalComponentId().toSpecification());
        }

        return specWithoutInnerComponents.
                addComponents(innerComponentSpecifications).
                setComponentId(getGlobalComponentId());
    }
Represents a component chain in the vespa model.
The inner components are represented as children.

@author Tony Vaagenes
@author gjoranv
config-model/src/main/java/com/yahoo/vespa/model/container/component/chain/Chain.java