private void addModulesOfTypeWithPrefix(String beginning, String modulePrefix, ModuleType type, List<String> results) {
		List<ModuleDefinition> mods = moduleRegistry.findDefinitions(type);
		for (ModuleDefinition mod : mods) {
			if (mod.getName().startsWith(modulePrefix)) {
				results.add(beginning + mod.getName());
			}
		}
	}
Construct a new UnfinishedModuleNameRecoveryStrategy given the parser

@param parser the parser used to parse the text the partial module definition.
@param moduleRegistry the registry to use for looking up all modules that start with a given name
       prefix.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/completion/UnfinishedModuleNameRecoveryStrategy.java