{
final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
final int elementCount = crosstabCellBody.getElementCount();
for (int i = 1; i < elementCount; i += 1)
{
final CrosstabCell cell = (CrosstabCell) crosstabCellBody.getElement(i);
if (cell.getRowField() == null)
{
processRootBand(cell);
}
}
}
else if (group instanceof CrosstabRowGroup)
{
final CrosstabRowGroup rowGroup = (CrosstabRowGroup) group;
final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
final int elementCount = crosstabCellBody.getElementCount();
for (int i = 1; i < elementCount; i += 1)
{
final CrosstabCell cell = (CrosstabCell) crosstabCellBody.getElement(i);
if (ObjectUtilities.equal(cell.getRowField(), rowGroup.getField()))
{
processRootBand(cell);
}
}
}