final Band outsideBody = new Band();
outsideBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
outsideBody.setName("group-body-outside");
outsideBody.addElement(insideGroup);
final ReportHeader band = report.getReportHeader();
band.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, false);
band.getStyle().setStyleProperty(ElementStyleKeys.WIDOW_ORPHAN_OPT_OUT, true);
band.setLayout(BandStyleKeys.LAYOUT_BLOCK);
band.setName("group-outside");
band.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
band.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);
band.addElement(createBand("group-header-outside"));
band.addElement(outsideBody);
band.addElement(createBand("group-footer-outside"));
List<LogicalPageBox> pages = DebugReportRunner.layoutPages(report, 0, 1, 2);
final LogicalPageBox logicalPageBox1 = pages.get(0);
ModelPrinter.INSTANCE.print(logicalPageBox1);
final RenderNode grHOut2 = MatchFactory.findElementByName(logicalPageBox1, "group-header-outside");