{
final int count = sectionReportElement.getElementCount();
for (int i = 0; i < count; i++)
{
final Element reportElement = sectionReportElement.getElement(i);
final InstanceID id = reportElement.getObjectID();
elementsById.put(id, reportElement);
if (reportElement instanceof Section)
{
collectDesignTimeElements((Section) reportElement);
}
}
if (sectionReportElement instanceof RootLevelBand)
{
final RootLevelBand rlb = (RootLevelBand) sectionReportElement;
for (int i = 0; i < rlb.getSubReportCount(); i += 1)
{
final SubReport reportElement = rlb.getSubReport(i);
final InstanceID id = reportElement.getObjectID();
elementsById.put(id, reportElement);
collectDesignTimeElements(reportElement);
}
}
}