private RankProfile.InputType typeOf(CompoundName name) {
        // Session is lazily resolved because order matters:
        // model.sources+restrict must be set in the query before this is done
        if (session == null)
            session = schemaInfo.newSession(query);
        // In addition, the rank profile must be set before features
        return session.rankProfileInput(name.last(), query.getRanking().getProfile());
    }
Verifies and converts properties according to any input declarations in the rank profile set on the query.

@author bratseth
container-search/src/main/java/com/yahoo/search/query/properties/RankProfileInputProperties.java