@Override
    protected Object checkAndConvertAssignment(String localName, Object inputValue, QueryProfileRegistry registry) {
        Object value = super.checkAndConvertAssignment(localName, inputValue, registry);
        if (value != null && value.getClass() == QueryProfile.class) { // We are assigning a query profile - make it overridable
            return new BackedOverridableQueryProfile((QueryProfile)value);
        }
        return value;
    }
Creates an unbacked overridable query profile
container-search/src/main/java/com/yahoo/search/query/profile/OverridableQueryProfile.java