return uc;
}
private void glueNestedTable(Worksheet oldws, Workspace workspace, HTable ht, List<HNode> hnodes, RepFactory factory) {
SuperSelection selection = getSuperSelection(oldws);
HTable parentHT = ht.getParentHNode().getHTable(factory);
List<Table> parentTables = new ArrayList<Table>();
CloneTableUtils.getDatatable(oldws.getDataTable(), parentHT,parentTables, selection);
ArrayList<Row> parentRows = new ArrayList<Row>();
for (Table tmp : parentTables) {
for (Row row : tmp.getRows(0, tmp.getNumRows(), selection)) {
parentRows.add(row);
}
}
HNode newNode = ht.addHNode(ht.getNewColumnName("Glue"), HNodeType.Transformation, oldws, factory);
outputColumns.add(newNode.getId());
newhNodeId = newNode.getId();
HTable newht = newNode.addNestedTable(newNode.getColumnName(), oldws, factory);
List<HNode> childHNodes = new ArrayList<HNode>();
for (HNode hnode : hnodes) {
if (hnode.hasNestedTable()) {
for (HNode hn : hnode.getNestedTable().getHNodes()) {
childHNodes.add(hn);