* Initialize this module by creating its application context, and provide it with a special
* {@link org.springframework.core.env.Environment} that knows how to resolve module options placeholders.
*/
@Override
public void initialize() {
this.application.initializers(new ContextIdApplicationContextInitializer(this.toString()));
ConfigurableEnvironment parentEnvironment = parent == null ? null
: parent.getEnvironment();
ModuleEnvironment environment = new ModuleEnvironment(moduleOptions.asPropertySource(), parentEnvironment);
for (PropertySource<?> source : propertySources) {
environment.getPropertySources().addFirst(source);