private static <COMPONENT extends ChainedComponent> COMPONENT getComponentOrThrow(
            ComponentRegistry<COMPONENT> registry,
            ComponentSpecification specification) {

        COMPONENT component = registry.getComponent(specification);
        if (component == null) {
            throw new ConfigurationRuntimeException("No such component '" + specification + "'");
        }

        return component;
    }
Configures a registry of chains.

@author bratseth
@author gjoranv
container-core/src/main/java/com/yahoo/component/chain/ChainsConfigurer.java