}
final FormulaParameterEntity[] groupedMetaData = new FormulaParameterEntity[metaData.length + groupCount];
this.groupings = new GroupingHeader[groupedMetaData.length];
int targetIdx = 0;
GroupingHeader group = null;
for (int sourceIdx = 0; sourceIdx < metaData.length; sourceIdx++)
{
final FormulaParameterEntity data = metaData[sourceIdx];
if (sourceIdx == 0)
{
group = new GroupingHeader(data.getType().toString());
groupings[targetIdx] = group;
targetIdx += 1;
}
else
{
final String newgroup = data.getType().toString();
if ((ObjectUtilities.equal(newgroup, group.getHeaderText())) == false)
{
group = new GroupingHeader(newgroup);
groupings[targetIdx] = group;
targetIdx += 1;
}
}