code: public CompletableFuture<Void> open() {
      return primaryElection.getTerm()
          .thenAccept(this::changeRole)
          .thenRun(() -> service.init(this));
    }
docs: Opens the service context.
  
  @return a future to be completed once the service context has been opened