@Override
    public String toString() {
        return "query profile '" + getId()  + "'" + (type!=null ? " of type '" + type.getId() + "'" : "");
    }
Throws IllegalArgumentException if the given string is not a valid query profile name
container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java