ArrayList<Cell> cellList = new ArrayList<Cell>();
int i = 0;
for (ReportDesign reportDesign : reportDesignList) {
if (reportDesign.getRowAlias() != null) {
RowAlias rowAlias = reportDesign.getRowAlias();
cellList.add(new Cell(rowAlias.getAlias(), r.get(i)));
} else if (reportDesign.getColumnAlias() != null) {
ColumnAlias columnAlias = reportDesign.getColumnAlias();
cellList.add(new Cell(columnAlias.getAlias(),
r.get(i)));
}
i++;
}
return cellList;