this.showTable( (UITableModel) results );
} else if (results instanceof Exception) {
if (results instanceof CommandLineExitException) {
this.running = false;
} else if (results instanceof UICommandException) {
UICommandException exe = (UICommandException) results;
((CommandLineCommand)exe.getCommand()).showHelp(writer);
if (exe.getCause() == null || exe.getCause() == exe) {
writer.println("Error executing command: " + exe.getMessage());
} else {
exe.printStackTrace(writer);
}
writer.println();
} else {
writer.println("Unexpected exception:");
((Exception)results).printStackTrace(writer);