@Override
	public ModuleInformation resolve(ModuleDefinition definition) {
		if (!(definition instanceof SimpleModuleDefinition)) {
			return null;
		}
		SimpleModuleDefinition simpleModuleDefinition = (SimpleModuleDefinition) definition;

		Properties props = ModuleUtils.loadModuleProperties(simpleModuleDefinition);
		if (props == null) {
			return null;
		}
		else {
			try {
				ModuleInformation result = new ModuleInformation();
				PropertiesConfigurationFactory<ModuleInformation> factory = new PropertiesConfigurationFactory<>(result);
				factory.setProperties(props);
				factory.setTargetName("info");
				factory.setValidator(validator);
				factory.bindPropertiesToTarget();
				return result;
			}
			catch (BindException e) {
				throw new RuntimeException("Exception occurred trying to set values from properties file for " + definition + "\n" + e.getMessage(), e);
			}
		}
	}
Default implementation of {@link org.springframework.xd.module.info.ModuleInformationResolver} that supports
{@link org.springframework.xd.module.SimpleModuleDefinition}s and that reads Strings from
the module properties companion file.

@author Eric Bottard
spring-xd-module/src/main/java/org/springframework/xd/module/info/DefaultSimpleModuleInformationResolver.java