UpdateContainer c = new UpdateContainer();
if (this.newWorksheetId != null) {
workspace.removeWorksheet(newWorksheetId);
workspace.getFactory().removeWorksheet(newWorksheetId, workspace.getCommandHistory());
c.add(new WorksheetListUpdate());
c.add(new WorksheetDeleteUpdate(newWorksheetId));
}
if (this.newHNodeId != null) {
Worksheet worksheet = workspace.getWorksheet(worksheetId);
HNode ndid = workspace.getFactory().getHNode(newHNodeId);
HTable currentTable = workspace.getFactory().getHTable(ndid.getHTableId());