public void setComponentRegistry(ComponentRegistry<AbstractComponent> registry) {
        registry.freeze();
        this.componentRegistry = registry;
    }
Hack. For internal use only, will be removed later.

Used by Application to be able to repeatedly set up containers.
container-core/src/main/java/com/yahoo/container/Container.java