docs: protected PrimaryTerm getTerm(Commit<? extends PrimaryElectorOperations.GetTerm> commit) {
      PartitionId partitionId = commit.value().partitionId();
      try {
        return term(partitionId);
      } catch (Exception e) {
        getLogger().error("State machine operation failed", e);
        throwIfUnchecked(e);
        throw new RuntimeException(e);
      }
    }