private void initContext() {
		Assert.state(context != null, "An ApplicationContext is required");
		boolean propertyConfigurerPresent = false;
		for (String name : context.getBeanDefinitionNames()) {
			if (name.startsWith("org.springframework.context.support.PropertySourcesPlaceholderConfigurer")) {
				propertyConfigurerPresent = true;
				break;
			}
		}
		if (!propertyConfigurerPresent) {
			PropertySourcesPlaceholderConfigurer placeholderConfigurer = new PropertySourcesPlaceholderConfigurer();
			placeholderConfigurer.setEnvironment(context.getEnvironment());
			context.addBeanFactoryPostProcessor(placeholderConfigurer);
		}
		context.setId(this.toString());
		context.refresh();
	}
@author Mark Fisher
@author David Turanski
@author Gary Russell
spring-xd-module/src/main/java/org/springframework/xd/module/core/CompositeModule.java