public void setTermType(TermType termType) {
        Validator.ensureNotNull("Type of produced Term", termType);
        this.termType = termType;
    }
Sets the term type to produce
container-search/src/main/java/com/yahoo/prelude/semantics/rule/TermProduction.java