// Create a new Database Import Command. The interface allows the user to import
// multiple tables
ImportDatabaseTableCommand comm = new ImportDatabaseTableCommand(workspace.getFactory().getNewId("C"),
dbType.name(), hostname, portnumber, username, password, dBorSIDName);
workspace.getCommandHistory().addPreviewCommand(comm);
NewDatabaseCommandUpdate upd = new NewDatabaseCommandUpdate(comm.getId());
c.add(upd);
} catch (Throwable e) {
String message = e.getMessage().replaceAll("\n", "").replaceAll("\"", "\\\"");
ErrorUpdate errUpdt = new ErrorUpdate(message);
c.add(errUpdt);