public <T extends CHILD> Collection<T> getComponents(Class<T> componentClass) {
        return getChildren().values().stream()
                .filter(componentClass::isInstance)
                .map(componentClass::cast)
                .sorted() // We need consistent ordering
                .toList();
    }
Removes a component by id

@return the removed component, or null if it was not present
config-model/src/main/java/com/yahoo/vespa/model/container/component/ConfigProducerGroup.java