code: ConfigurableApplicationContext addConfigFilesToEnvironment() {
  		ConfigurableApplicationContext capture = null;
  		try {
  			StandardEnvironment environment = copyEnvironment(
  					this.context.getEnvironment());
  			SpringApplicationBuilder builder = new SpringApplicationBuilder(Empty.class)
  					.bannerMode(Mode.OFF).web(WebApplicationType.NONE)
  					.environment(environment);
  			// Just the listeners that affect the environment (e.g. excluding logging
  			// listener because it has side effects)
  			builder.application()
  					.setListeners(Arrays.asList(new BootstrapApplicationListener(),
  							new ConfigFileApplicationListener()));
  			capture = builder.run();
  			if (environment.getPropertySources().contains(REFRESH_ARGS_PROPERTY_SOURCE)) {
  				environment.getPropertySources().remove(REFRESH_ARGS_PROPERTY_SOURCE);
  			}
  			MutablePropertySources target = this.context.getEnvironment()
  					.getPropertySources();
  			String targetName = null;
  			for (PropertySource<?> source : environment.getPropertySources()) {
  				String name = source.getName();
  				if (target.contains(name)) {
  					targetName = name;
  				}
  				if (!this.standardSources.contains(name)) {
  					if (target.contains(name)) {
  						target.replace(name, source);
  					}
  					else {
  						if (targetName != null) {
  							target.addAfter(targetName, source);
  						}
  						else {
  							// targetName was null so we are at the start of the list
  							target.addFirst(source);
  							targetName = name;
  						}
  					}
  				}
  			}
  		}
  		finally {
  			ConfigurableApplicationContext closeable = capture;
  			while (closeable != null) {
  				try {
  					closeable.close();
  				}
  				catch (Exception e) {
  					// Ignore;
  				}
  				if (closeable.getParent() instanceof ConfigurableApplicationContext) {
  					closeable = (ConfigurableApplicationContext) closeable.getParent();
  				}
  				else {
  					break;
  				}
  			}
  		}
  		return capture;
  	}
docs: /* For testing.