}
}
if (level.isInItemGroup())
{
final DetailsHeader detailsHeader = def.getDetailsHeader();
if (detailsHeader.isRepeat())
{
print(level.getRuntime(), detailsHeader);
}
}
}
final int groupsPrinted;
if (groupStartPending || state.isInItemGroup() == false)
{
groupsPrinted = state.getCurrentGroupIndex() - 1;
}
else
{
groupsPrinted = state.getCurrentGroupIndex();
}
for (int gidx = 0; gidx <= groupsPrinted; gidx++)
{
final Group g = report.getGroup(gidx);
final GroupHeader header = g.getHeader();
if (header.isRepeat())
{
print(runtime, header);
}
}
if (state.isInItemGroup())
{
final DetailsHeader detailsHeader = report.getDetailsHeader();
if (detailsHeader.isRepeat())
{
print(runtime, detailsHeader);
}
}