private Map<Object, Object> moduleOptionsToProperties(ModuleOptions moduleOptions) {
		Map<Object, Object> result = new HashMap<Object, Object>();
		EnumerablePropertySource<?> ps = moduleOptions.asPropertySource();
		for (String propname : ps.getPropertyNames()) {
			Object value = ps.getProperty(propname);
			if (value != null) {
				result.put(propname, value.toString());
			}
		}
		return result;
	}
Subclasses implement this method to configure the application context from sources contained in the
{@link org.springframework.xd.module.ModuleDefinition}
spring-xd-module/src/main/java/org/springframework/xd/module/core/SimpleModule.java