class EurekaConfigServerBootstrapper implements BootstrapRegistryInitializer {

	@Override
	public void initialize(BootstrapRegistry registry) {<FILL_FUNCTION_BODY>}

	private static PropertyResolver getPropertyResolver(BootstrapContext context) {
		return context.getOrElseSupply(PropertyResolver.class,
				() -> new PropertyResolver(context.get(Binder.class), context.getOrElse(BindHandler.class, null)));
	}

	public static Boolean getDiscoveryEnabled(BootstrapContext bootstrapContext) {
		PropertyResolver propertyResolver = getPropertyResolver(bootstrapContext);
		return propertyResolver.get(ConfigClientProperties.CONFIG_DISCOVERY_ENABLED, Boolean.class, false)
				&& propertyResolver.get("eureka.client.enabled", Boolean.class, true)
				&& propertyResolver.get("spring.cloud.discovery.enabled", Boolean.class, true);
	}

}

		if (!ClassUtils.isPresent("org.springframework.cloud.config.client.ConfigServerInstanceProvider", null)) {
			return;
		}

		registry.registerIfAbsent(EurekaClientConfigBean.class, context -> {
			if (!getDiscoveryEnabled(context)) {
				return null;
			}
			PropertyResolver propertyResolver = getPropertyResolver(context);
			return propertyResolver.resolveConfigurationProperties(EurekaClientConfigBean.PREFIX,
					EurekaClientConfigBean.class, EurekaClientConfigBean::new);
		});

		registry.registerIfAbsent(ConfigServerInstanceProvider.Function.class, context -> {
			if (!getDiscoveryEnabled(context)) {
				return (id) -> Collections.emptyList();
			}
			EurekaClientConfigBean config = context.get(EurekaClientConfigBean.class);
			EurekaHttpClient httpClient = new RestTemplateTransportClientFactory(
					context.getOrElse(TlsProperties.class, null),
					context.getOrElse(EurekaClientHttpRequestFactorySupplier.class,
							new DefaultEurekaClientHttpRequestFactorySupplier())).newClient(
									HostnameBasedUrlRandomizer.randomEndpoint(config, getPropertyResolver(context)));
			return new EurekaConfigServerInstanceProvider(httpClient, config)::getInstances;
		});
	
<no_super_class>