private void addUserFields(QueryProfileType user) {
        boolean overridable=true;
        user.addField(new FieldDescription("myUserString",FieldType.fromString("string",registry),false,!overridable));
        user.addField(new FieldDescription("myUserInteger",FieldType.fromString("integer",registry)));
    }
Tests overriding of field values

@author bratseth
container-search/src/test/java/com/yahoo/search/query/profile/types/test/OverrideTestCase.java