public Object set(String key, Object newValue) {
        if (values == null)
            values = new HashMap<>();

        Object oldValue = values.get(key);

        Object combinedOrNull = QueryProfile.combineValues(newValue, oldValue);
        if (combinedOrNull instanceof BackedOverridableQueryProfile) // Use the owner's, not the referenced dimensions
            ((QueryProfile) combinedOrNull).setDimensions(owner.getDimensions().toArray(new String[0]));
        if (combinedOrNull != null)
            values.put(key, combinedOrNull);
        return combinedOrNull;
    }
Returns the live reference to the inherited profiles of this. This may be modified
if this is not frozen.
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java