group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
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.ORPHANS, 200);
group1.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);