String realCommand = trimTerminator(cmd);
if (realCommand.equalsIgnoreCase("help")) {
printUsage();
} else if (realCommand.equalsIgnoreCase("exit")) {
throw new QuitException(0);
} else {
QuerySubmitResponse response = mExecEnv.submitQuery(realCommand, getQuerySettings());
String msg = response.getMessage();
if (null != msg) {
System.out.println(msg);