private RESTModuleType validateAndReturnModuleType(String value) {
		try {
			return RESTModuleType.valueOf(value);
		}
		catch (IllegalArgumentException e) {
			logger.warn("Not a valid module type. Valid module types are: "
					+ Arrays.toString(RESTModuleType.values()));
			throw new ShellException();
		}
	}
Verify the module type used in the option value
and return the valid module type.
@param value the value to validate
@return RESTModuleType the valid module type
spring-xd-shell/src/main/java/org/springframework/xd/shell/converter/QualifiedModuleNameConverter.java