public ComponentRegistry<ChainedComponent<?>> componentsRegistry() {
        ComponentRegistry<ChainedComponent<?>> result = new ComponentRegistry<>();

        for (ChainedComponent<?> component: componentGroup.getComponents())
            result.register(component.getGlobalComponentId(), component);

        for (CHAIN chain : allChains().allComponents()) {
            for (ChainedComponent<?> component: chain.getInnerComponents()) {
                result.register(component.getGlobalComponentId(), component);
            }
        }
        return result;
    }
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