private Class<? extends SimpleModule> determineModuleClass(SimpleModuleDefinition moduleDefinition,
			ModuleOptions moduleOptions) {
		String name = (String) moduleOptions.asPropertySource().getProperty(MODULE_EXECUTION_FRAMEWORK_KEY);
		if ("spark".equals(name)) {
			return NonBindingResourceConfiguredModule.class;
		}
		else if (ModuleUtils.resourceBasedConfigurationFile(moduleDefinition) != null) {
			return ResourceConfiguredModule.class;
		}
		else if (JavaConfiguredModule.basePackages(moduleDefinition).length > 0) {
			return JavaConfiguredModule.class;
		}
		return null;
	}
Create a simple module based on the provided {@link ModuleDescriptor}, {@link ModuleOptions}, and {@link ModuleDeploymentProperties}.

@param moduleDescriptor descriptor for the composed module
@param moduleOptions module options for the composed module
@param deploymentProperties deployment related properties for the composed module
@return new simple module instance
spring-xd-module/src/main/java/org/springframework/xd/module/core/ModuleFactory.java