@Override
	public RuntimeModuleDeploymentProperties propertiesForDescriptor(ModuleDescriptor moduleDescriptor) {
		RuntimeModuleDeploymentProperties properties = new RuntimeModuleDeploymentProperties();

		properties.putAll(deploymentPropertiesProvider.propertiesForDescriptor(moduleDescriptor));

		ModuleDescriptor.Key moduleKey = moduleDescriptor.createKey();
		Integer index = mapModuleCount.get(moduleKey);
		if (index == null) {
			index = 0;
		}
		mapModuleCount.put(moduleKey, index + 1);
		// sequence number only applies if count > 0
		properties.setSequence((properties.getCount() == 0) ? 0 : mapModuleCount.get(moduleKey));
		return properties;
	}
Return the runtime deployment properties for the given module descriptor.
Currently, this implementation assigns the module sequence for the given descriptor and add it to
the runtime deployment properties.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/admin/deployment/RuntimeModuleDeploymentPropertiesProvider.java