docs: @Bean
      public CentralDogma client(
              Environment env,
              CentralDogmaSettings settings,
              @ForCentralDogma ClientFactory clientFactory,
              Optional<ArmeriaClientConfigurator> armeriaClientConfigurator) throws UnknownHostException {
  
          final ArmeriaCentralDogmaBuilder builder = new ArmeriaCentralDogmaBuilder();
  
          builder.clientFactory(clientFactory);
          builder.clientConfigurator(cb -> armeriaClientConfigurator.ifPresent(
                  configurator -> configurator.configure(cb)));
  
          // Set health check interval.
          final Long healthCheckIntervalMillis = settings.getHealthCheckIntervalMillis();
          if (healthCheckIntervalMillis != null) {
              builder.healthCheckIntervalMillis(healthCheckIntervalMillis);
          }
  
          // Enable or disable TLS.
          final Boolean useTls = settings.getUseTls();
          if (useTls != null) {
              builder.useTls(useTls);
          }
  
          // Set access token.
          final String accessToken = settings.getAccessToken();
          if (accessToken != null) {
              builder.accessToken(accessToken);
          }
  
          // Set profile or hosts.
          final String profile = settings.getProfile();
          final List<String> hosts = settings.getHosts();
          if (profile != null) {
              if (hosts != null) {
                  throw new IllegalStateException(
                          "'hosts' and 'profile' are mutually exclusive. Do not set both of them.");
              }
              builder.profile(CentralDogmaClientAutoConfiguration.class.getClassLoader(), profile);
          } else if (hosts != null) {
              for (String h : hosts) {
                  final HostAndPort hostAndPort = HostAndPort.fromString(h);
                  if (hostAndPort.hasPort()) {
                      builder.host(hostAndPort.getHost(), hostAndPort.getPort());
                  } else {
                      builder.host(hostAndPort.getHost());
                  }
              }
          } else {
              // Use the currently active Spring Boot profiles if neither profile nor hosts was specified.
              final String[] springBootProfiles = env.getActiveProfiles();
              logger.info("Using the Spring Boot profiles as the source of the Central Dogma client profile: {}",
                          springBootProfiles);
              builder.profile(springBootProfiles);
          }
  
          return builder.build();
      }