void processCmd(String cmd) {
try {
int space = cmd.indexOf(' ');
String operation = (space == -1) ? cmd : cmd.substring(0, space);
CommandParser commandParser = MAP_COMMAND_PARSERS.get(operation);
if (commandParser != null) {
command = commandParser.parser(this, cmd, space);
} else {
command = new ErrorCommand(UNKNOWN);
}
} catch (Throwable t) {
logger.finest(t);