currentPage = makePage(areaTree);
currentPage.setNumber(++this.currentPageNumber);
System.err.print(" [" + currentPageNumber);
if ((this.staticBefore != null) &&
(currentPage.getBefore() != null)) {
AreaContainer beforeArea = currentPage.getBefore();
this.staticBefore.layout(beforeArea);
}
if ((this.staticAfter != null) &&
(currentPage.getAfter() != null)) {
AreaContainer afterArea = currentPage.getAfter();
this.staticAfter.layout(afterArea);
}
if ((status.getCode() == Status.FORCE_PAGE_BREAK_EVEN) &&
((currentPageNumber % 2) == 1)) {
} else if ((status.getCode() == Status.FORCE_PAGE_BREAK_ODD) &&
((currentPageNumber % 2) == 0)) {
} else {
AreaContainer bodyArea = currentPage.getBody();
status = this.flow.layout(bodyArea);
}
System.err.print("]");
areaTree.addPage(currentPage);
} while (status.isIncomplete());