final Element footerValueElement = AutoGeneratorUtility.generateFooterElement
(aggFunctionClass, computeElementType(groupDefinition),
groupDefinition.getGroupName(), groupDefinition.getField());
final Element footerLabelElement = new Element();
footerLabelElement.setElementType(new LabelType());
if (groupDefinition.getGroupTotalsLabel() != null)
{
footerLabelElement.setAttribute
(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, groupDefinition.getGroupTotalsLabel());
}