public void validate() throws Exception {
        ChainsModel chainsModel = new ChainsModel();

        for (CHAIN chain : allChains().allComponents()) {
            chainsModel.register(chain.getChainSpecification());
        }
        for (ChainedComponent<?> component : allComponents()) {
            chainsModel.register(component.getGlobalComponentId(), component.model);
        }
        chainsModel.validate();

        super.validate();
    }
Root config producer the whole chains model(contains chains and components).

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