code: public static void setLemma(Token token, JCas jcas, String lemmaStr) {
          Lemma lemma = new Lemma(jcas);
          lemma.setValue(lemmaStr);
          lemma.addToIndexes();
          token.setLemma(lemma);
      }
docs: Convenience method to set POS tag