public static ModuleDeploymentProperties createModuleDeploymentProperties(
			Map<String, String> deploymentProperties, ModuleDescriptor descriptor) {
		ModuleDeploymentProperties moduleDeploymentProperties = new ModuleDeploymentProperties();
		// first add properties that should apply to all modules unless overridden
		String wildcardPrefix = "module.*.";
		for (Map.Entry<String, String> prop : deploymentProperties.entrySet()) {
			String key = prop.getKey();
			if (key.startsWith(wildcardPrefix)) {
				moduleDeploymentProperties.put(key.substring(wildcardPrefix.length()), prop.getValue());
			}
		}
		// now add properties that are designated for this module explicitly
		String modulePrefix = String.format("module.%s.", descriptor.getModuleLabel());
		for (Map.Entry<String, String> prop : deploymentProperties.entrySet()) {
			String key = prop.getKey();
			if (key.startsWith(modulePrefix)) {
				moduleDeploymentProperties.put(key.substring(modulePrefix.length()), prop.getValue());
			}
		}
		return moduleDeploymentProperties;
	}
Based on the deployment properties for a {@link Stream}/{@link Job}, create an instance of
{@link org.springframework.xd.module.ModuleDeploymentProperties} for a specific module
in the {@link Stream}/{@link Job}.

@param deploymentProperties deployment properties for a stream/job
@param descriptor descriptor for module in the stream for which to create the properties
@return deployment properties for the module
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/util/DeploymentPropertiesUtility.java