class KubernetesCatalogWatchAutoConfiguration {

	private static final LogAccessor LOG = new LogAccessor(
			LogFactory.getLog(KubernetesCatalogWatchAutoConfiguration.class));

	// this has to be a RestTemplateBuilder and not a WebClientBuilder, otherwise
	// we need the webflux dependency, and it might leak into client's dependencies
	// which is not always desirable.
	@Bean
	@ConditionalOnMissingBean
	RestTemplateBuilder restTemplateBuilder() {
		return new RestTemplateBuilder();
	}

	@Bean
	@ConditionalOnMissingBean
	KubernetesCatalogWatch kubernetesCatalogWatch(RestTemplateBuilder builder, KubernetesDiscoveryProperties properties,
			Environment environment) {<FILL_FUNCTION_BODY>}

}


		String watchDelay = environment.getProperty(CATALOG_WATCH_PROPERTY_NAME);
		if (watchDelay != null) {
			LOG.debug("using delay : " + watchDelay);
		}
		else {
			LOG.debug("using default watch delay : " + CATALOG_WATCHER_DEFAULT_DELAY);
		}

		return new KubernetesCatalogWatch(builder, properties);
	
<no_super_class>