public Class<?> getValueClass(String name) {
        FieldDescription fieldDescription = getField(name);
        if (fieldDescription == null) {
            if (strict)
                return null; // Undefined -> Not legal
            else
                return Object.class; // Undefined -> Anything is legal
        }
        return fieldDescription.getType().getValueClass();
    }
Returns the permissible class for the value of the given name in this type

@return the permissible class for a value, <code>Object</code> if all types are legal,
        null if no types are legal (i.e. if the name is not legal)
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java