public QualifiedModuleName convertFromText(String value, Class<?> targetType, String optionContext) {
int colonIndex = value.indexOf(':');
if (colonIndex == -1) {
logger.warning("Incorrect syntax. Valid syntax is '<ModuleType>:<ModuleName>'.");
logger.warning("For example, 'module info source:file' to get 'file' <source> module info.");
throw new ShellException();
}
RESTModuleType moduleType = validateAndReturnModuleType(value.substring(0, colonIndex));
return new QualifiedModuleName(value.substring(colonIndex + 1), moduleType);
}