private String determineKind(String optionContext) {
		String[] options = optionContext.split(" ");
		for (String option : options) {
			if (option.startsWith(EXISTING_PREFIX)) {
				return option.substring(EXISTING_PREFIX.length());
			}
		}
		throw new IllegalStateException("Could not determine kind: " + optionContext);
	}
A grouping header depending on the status of the resource, or {@code null} if no information can be derived /
makes sense.
spring-xd-shell/src/main/java/org/springframework/xd/shell/converter/ExistingXDEntityConverter.java