public Module createModule(ModuleDescriptor moduleDescriptor, ModuleDeploymentProperties deploymentProperties) {
		ModuleOptions moduleOptions = this.safeModuleOptionsInterpolate(moduleDescriptor);
		Module module = createAndConfigureModuleInstance(moduleDescriptor, moduleOptions, deploymentProperties);
		return module;
	}
Create a new {@link org.springframework.xd.module.core.SimpleModule} or
{@link org.springframework.xd.module.core.CompositeModule} instance from inspecting the
{@link org.springframework.xd.module.ModuleDescriptor}, particularly the descriptor's
{@link org.springframework.xd.module.ModuleDefinition}.

@param moduleDescriptor contains the module's runtime configuration (required)
@param deploymentProperties contains deployment properties (may be null)
@return the module instance
spring-xd-module/src/main/java/org/springframework/xd/module/core/ModuleFactory.java