public ComponentId createAnonymousId(String name) {
        return ComponentId.newAnonymous(name + "_" + (nextAnonymousId++));
    }
Freezes this, and all owned query profiles and query profile types
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileRegistry.java