if (!cellSet.getAxes().get(0).getAxisOrdinal().equals(Axis.ROWS)) {
rowsIndex = rowsIndex + 1 & 1;
}
// TODO - refactor this using axis ordinals etc.
//@formatter:off
final AxisInfo[] axisInfos = new AxisInfo[] { new AxisInfo(cellSet.getAxes().get(rowsIndex)),
new AxisInfo(cellSet.getAxes().get(rowsIndex + 1 & 1)) };
//@formatter:on
List<TotalNode>[][] totals = new List[2][];
TotalsListsBuilder builder = null;
for (int index = 0; index < 2; index++) {
final int second = index + 1 & 1;