code: ServerContext setTerm(long term) {
      if (term > this.term) {
        this.term = term;
        this.leader = 0;
        this.lastVotedFor = 0;
        meta.storeTerm(this.term);
        meta.storeVote(this.lastVotedFor);
        LOGGER.debug("{} - Set term {}", cluster.member().address(), term);
      }
      return this;
    }
docs: Sets the state term.
  
  @param term The state term.
  @return The Raft context.