// get the columns from the selected dataset
List columnList = new ArrayList();
for (Iterator i = dataSetHandleToUse.getCachedMetaDataHandle()
.getResultSet().iterator(); i.hasNext();) {
ResultSetColumnHandle colInfo = (ResultSetColumnHandle) i
.next();
columnList.add(colInfo.getColumnName());
}
// create new table, set the data set
TableHandle reportTable = reportDesign.getElementFactory()
.newTableItem(