public void register(ComponentId id, COMPONENT component) {
        if (frozen) throw new IllegalStateException("Cannot modify a frozen component registry");

        Map<String, Map<Version, COMPONENT>> componentVersionsByName =
                componentsByNameByNamespace.computeIfAbsent(id.getNamespace(), k -> new LinkedHashMap<>());

        Map<Version, COMPONENT> componentVersions = componentVersionsByName.computeIfAbsent(id.getName(), k -> new LinkedHashMap<>());
        componentVersions.put(id.getVersion(), component);

        componentsById.put(id, component);
    }
Registers a component unless this registry is frozen.
This will succeed even if this component name and version is already registered.

@throws IllegalStateException if this chain is frozen
component/src/main/java/com/yahoo/component/provider/ComponentRegistry.java