group0.addField("g0");
group0.getHeader().addElement(createDataItem("outer-header-field", 100, 20));
group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
group1.setName("inner-group");
group1.addField("g1");
group1.getHeader().addElement(createDataItem("inner-header-field", 100, 20));
group1.getFooter().addElement(createDataItem("inner-footer-field", 100, 20));
report.getItemBand().addElement(createFieldItem("detail-field", 100, 20));
report.getItemBand().getParentSection().getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, Boolean.TRUE);
group0.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, Boolean.TRUE);