/**
  * Bind the environment to the {@link SpringApplication}.
  *
  * @param environment the environment to bind
  * @param application the application to bind to
  */
 protected void bindToSpringApplication(
     ConfigurableEnvironment environment, SpringApplication application) {
   RelaxedDataBinder binder = new RelaxedDataBinder(application, "spring.main");
   binder.setConversionService(this.conversionService);
   binder.bind(new PropertySourcesPropertyValues(environment.getPropertySources()));
 }