public static Properties loadModuleProperties(SimpleModuleDefinition moduleDefinition) {
		Resource resource = modulePropertiesFile(moduleDefinition);
		if (resource == null) {
			return null;
		}
		Properties properties = new Properties();
		try (InputStream inputStream = resource.getInputStream()) {
			properties.load(inputStream);
			return properties;
		}
		catch (IOException e) {
			throw new RuntimeException(String.format("Unable to read module properties for %s:%s",
					moduleDefinition.getName(), moduleDefinition.getType()), e);
		}
	}
Locate the module '.properties' file and load it as a {@link java.util.Properties} object.
@return {@code null} if no properties file exists
spring-xd-module/src/main/java/org/springframework/xd/module/options/ModuleUtils.java