static ParsingContext toParsingContext(CompletionKind kind) {
		switch (kind) {
			case stream:
				return ParsingContext.partial_stream;
			case module:
				return ParsingContext.partial_module;
			case job:
				return ParsingContext.partial_job;
			default:
				throw new IllegalArgumentException("Unknown kind: " + kind);
		}
	}
Construct a new CompletionProvider given a list of recovery strategies and expansion strategies.

@param parser the parser used to parse the text the partial module definition.
@param completionRecoveryStrategies list of strategies to apply when an exception was thrown during parsing.
@param completionExpansionStrategies list of strategies to apply for adding additional module options completion
       suggestions.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/completion/CompletionProvider.java