@Override
	public void preProcessModule(Module module) {
		Properties props = new Properties();
		props.setProperty(XD_MODULE_NAME_KEY, module.getName());
		props.setProperty(XD_MODULE_LABEL_KEY, module.getDescriptor().getModuleLabel());
		props.setProperty(XD_MODULE_INDEX_KEY, String.valueOf(module.getDescriptor().getIndex()));
		props.setProperty(XD_MODULE_TYPE_KEY, module.getType().name());
		props.setProperty(XD_MODULE_COUNT_KEY, String.valueOf(module.getDeploymentProperties().getCount()));
		props.setProperty(XD_MODULE_SEQUENCE_KEY,
				String.valueOf(module.getDeploymentProperties().get(RuntimeModuleDeploymentProperties.SEQUENCE_KEY)));

		module.addProperties(props);
	}
A plugin that exposes information such as the module name, index, sequence or count to be available inside the
environment.

@author Eric Bottard
@author Marius Bogoevici
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/ModuleInfoPlugin.java