private ModuleOptionsMetadata inferModuleOptionsMetadata(SimpleModuleDefinition definition,
			ClassLoader classLoaderToUse) {
		final DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();

		Resource source = ModuleUtils.resourceBasedConfigurationFile(definition);
		if (source == null) {
			return new PassthruModuleOptionsMetadata();
		}

		AbstractBeanDefinitionReader reader = source.getFilename().endsWith("xml") ?
				new XmlBeanDefinitionReader(beanFactory) :
				new GroovyBeanDefinitionReader(beanFactory);

		reader.setResourceLoader(new PathMatchingResourcePatternResolver(classLoaderToUse));

		reader.loadBeanDefinitions(source);

		return defaultModuleOptionsMetadataCollector.collect(beanFactory);

	}
Will parse the module xml definition file, looking for "${foo}" placeholders and advertise a {@link ModuleOption}
for each of those.

Note that this may end up in false positives and does not convey much information.
spring-xd-module/src/main/java/org/springframework/xd/module/options/DefaultModuleOptionsMetadataResolver.java