public synchronized void deploy(Module module, ModuleDescriptor descriptor) {
		String group = descriptor.getGroup();

		module.setParentContext(this.globalContext);
		doDeploy(module);
		logger.info("Deployed {}", module);
		Map<Integer, Module> modules = this.deployedModules.get(group);
		if (modules == null) {
			modules = new HashMap<Integer, Module>();
			this.deployedModules.put(group, modules);
		}
		modules.put(descriptor.getIndex(), module);
	}
Deploy the given module to this container. This action includes
<ul>
    <li>applying the appropriate plugins</li>
    <li>setting the parent application context</li>
    <li>starting the module</li>
    <li>registering the module with this container</li>
</ul>

@param module the module to deploy
@param descriptor descriptor for the module instance
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/ModuleDeployer.java