// we have the data and we have our position inside the report.
// lets generate something ...
final FlowController flowController = createFlowControler(context, job);
LayoutController layoutController =
layoutFactory.create(flowController, job.getReportStructureRoot(), null);
try
{
stateList.add(new PageState(target.saveState(), layoutController,
outputProcessor.getPageCursor()));
int logPageCount = outputProcessor.getLogicalPageCount();
int physPageCount = outputProcessor.getPhysicalPageCount();
while (layoutController.isAdvanceable())
{
layoutController = layoutController.advance(target);
target.commit();
while (layoutController.isAdvanceable() == false &&
layoutController.getParent() != null)
{
final LayoutController parent = layoutController.getParent();
layoutController = parent.join(layoutController.getFlowController());
}
// check whether a pagebreak has been encountered.
if (target.isPagebreakEncountered())
{