private void addAllModulesOfType(String beginning, ModuleType type, List<String> results) {
		List<ModuleDefinition> mods = moduleRegistry.findDefinitions(type);
		for (ModuleDefinition mod : mods) {
			results.add(beginning + mod.getName());
		}
	}
Construct a new ExpandOneDashToTwoDashesRecoveryStrategy 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 processors or sinks that can be added
       after the pipe symbol.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/completion/ModulesAfterPipeRecoveryStrategy.java