code: private void stepDown() {
      if (raft.getLeader() != null && raft.getLeader().equals(raft.getCluster().getMember())) {
        raft.setLeader(null);
      }
    }
docs: Ensures the local server is not the leader.