public QueryProfileType getType(String localName) {
        FieldDescription fieldDescription = getField(localName);
        if (fieldDescription == null) return null;
        if ( ! (fieldDescription.getType() instanceof QueryProfileFieldType)) return null;
        return ((QueryProfileFieldType) fieldDescription.getType()).getQueryProfileType();
    }
Returns the type of the given query profile type declared as a field in this
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java