cmdExecutor.addObserver(this);
cmdExecutor.execute(parsedCommand);
LOG.info("Command '" + parsedCommand.getCommand() + "' executed in "
+ DurationFormatUtils.formatDurationWords(stopWatch.getTime(), true, true));
} else {
throw new ConsoleException(ConsoleException.CMD_LINE_EXECUTOR_NULL, new String[] { ""
+ parsedCommand.getCommand() });
}
} else {
throw new ConsoleException(ConsoleException.CMD_LINE_NULL);
}
} finally {
stopWatch.stop();
cleanExecutor();
}