public void setProfile(String profile) {
        if (profile==null) throw new NullPointerException("The ranking profile cannot be set to null");
        this.profile = profile;
    }
Sets the name of the rank profile to use. This cannot be set to null.
container-search/src/main/java/com/yahoo/search/query/Ranking.java