@Override
	public void addProposals(String dsl, NoSuchModuleException exception, CompletionKind kind, int detailLevel,
			List<String> proposals) {
		String modulePrefix = exception.getName();
		int index = dsl.lastIndexOf(modulePrefix);
		String chopped = dsl.substring(0, index);
		for (ModuleType expected : exception.getCandidateTypes()) {
			addModulesOfTypeWithPrefix(chopped, modulePrefix, expected, proposals);
		}
	}
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