public void onApplicationEvent(RefreshScopeRefreshedEvent event) {
			// This will force the creation of the EurekaClient bean if not already
			// created
			// to make sure the client will be re-registered after a refresh event
			if (eurekaClient != null) {
				eurekaClient.getApplications();
			}
			if (autoRegistration != null) {
				// register in case meta data changed
				this.autoRegistration.stop();
				this.autoRegistration.start();
			}
		}
@author Dave Syer
@author Spencer Gibb
@author Jon Schneider
@author Jakub Narloch
@author Olga Maciaszek-Sharma
@author Tim Ysewyn
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaDiscoveryClientConfiguration.java