docs: protected static ManagedClusterMembershipService buildClusterMembershipService(
        ClusterConfig config,
        BootstrapService bootstrapService,
        NodeDiscoveryProvider discoveryProvider,
        GroupMembershipProtocol membershipProtocol,
        Version version) {
      // If the local node has not be configured, create a default node.
      Member localMember = Member.builder()
          .withId(config.getNodeConfig().getId())
          .withAddress(config.getNodeConfig().getAddress())
          .withHostId(config.getNodeConfig().getHostId())
          .withRackId(config.getNodeConfig().getRackId())
          .withZoneId(config.getNodeConfig().getZoneId())
          .withProperties(config.getNodeConfig().getProperties())
          .build();
      return new DefaultClusterMembershipService(
          localMember,
          version,
          new DefaultNodeDiscoveryService(bootstrapService, localMember, discoveryProvider),
          bootstrapService,
          membershipProtocol);
    }