CrosstabLayoutUtil.handleFinishPending(outputFunction, event);
final PreparedCrosstabLayout preparedCrosstabLayout = outputFunction.getCurrentCrosstabLayout();
final Renderer renderer = outputFunction.getRenderer();
final int gidx = event.getState().getCurrentGroupIndex();
final CrosstabRowGroup g = (CrosstabRowGroup) event.getReport().getGroup(gidx);
final LayoutBuilder builder = renderer.createBufferedLayoutBuilder();
final RenderBox titleBox = preparedCrosstabLayout.getRowHeaderTitleBox();
final RenderBox titleSlot = CrosstabLayoutUtil.getSlot(titleBox, slotNumber);
titleSlot.clear();
builder.startSection(titleSlot, true);
builder.add(titleSlot, g.getTitleHeader(), outputFunction.getRuntime(), event.getState().getProcessKey());
outputFunction.addSubReportMarkers(builder.endSection(titleSlot, titleSlot));
final RenderBox headerBox = preparedCrosstabLayout.getRowHeaderBox();
final RenderBox headerSlot = CrosstabLayoutUtil.getSlot(headerBox, slotNumber);
headerSlot.clear();
builder.startSection(headerSlot, true);
builder.add(headerSlot, g.getHeader(), outputFunction.getRuntime(), event.getState().getProcessKey());
outputFunction.addSubReportMarkers(builder.endSection(headerSlot, headerSlot));
}