public RenderBox produceSectionBox(final String layoutType, final ReportStateKey stateKey)
{
if (strictCompatibilityMode)
{
final BoxDefinition boxDefinition = BoxDefinition.EMPTY;
return new SectionRenderBox(bandWithoutKeepTogetherStyle, new InstanceID(), boxDefinition, AutoLayoutBoxType.INSTANCE,
ReportAttributeMap.emptyMap(), stateKey);
}
final RenderBox renderBox = createBox(layoutType, stateKey,
SECTION_DEFAULT_STYLE, AutoLayoutBoxType.INSTANCE, ReportAttributeMap.emptyMap(), new InstanceID());
renderBox.getStaticBoxLayoutProperties().setPlaceholderBox(StaticBoxLayoutProperties.PlaceholderType.SECTION);
renderBox.getStaticBoxLayoutProperties().setSectionContext(true);
return renderBox;
}