}
final long shift = boxContext.getShiftForNextChild();
if (box.getNodeType() == LayoutNodeTypes.TYPE_BOX_BREAKMARK)
{
final BreakMarkerRenderBox bmrb = (BreakMarkerRenderBox) box;
final long pageOffsetForMarker = bmrb.getValidityRange();
final long pageEndForOffset = paginationTableState.getBreakPositions().findPageEndForPageStartPosition(pageOffsetForMarker);
if ((box.getY() + shift) > pageEndForOffset)
{
// we ignore this one. It has been pushed outside of the page for which it was generated.
return false;
}
if (this.breakIndicatorEncountered == null ||
this.breakIndicatorEncountered.getY() < (bmrb.getY() + shift))
{
this.breakIndicatorEncountered = bmrb;
}
}