if (cell instanceof DataValueRenderCell) {
tmp = createValueLabel(value.newChildId(), cell.getRawValue(), cell.getPivotField());
applyRowColSpan(cell, tmp);
value.add(tmp);
} else {
GrandTotalValueRenderCell grandTotalCell = (GrandTotalValueRenderCell) cell;
tmp = createGrandTotalLabel(value.newChildId(), grandTotalCell.getRawValue(), grandTotalCell.isForRow());
applyRowColSpan(cell, tmp);
tmp.add(AttributeModifier.append("class", "grand-total"));
value.add(tmp);
}
}