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 PipeIntoOtherModulesExpansionStrategy given a ModuleDefinition repository.

@param moduleRegistry the registry to check for the existence of the last entered module
       definition.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/completion/PipeIntoOtherModulesExpansionStrategy.java