if (child.isRequiresLayout() && child.getMaster().getStyle().isAlternateFlow()) {
if (child.isRequiresLayout() && child.isAlternateFlow()) {
    private void layoutAlternateFlows(LayoutContext c) {        List children = getChildren();        if (children.size() > 0) {            LayoutState state = c.captureLayoutState();            for (int i = 0; i < children.size(); i++) {                Layer child = (Layer)children.get(i);                if (child.isRequiresLayout() &&                         child.getMaster().getStyle().isAlternateFlow()) {                    CalculatedStyle cs = child.getMaster().getStyle().getCalculatedStyle();                    MarginBox cb = createMarginBox(c,                             cs.getStringProperty(CSSName.FS_MOVE_TO_FLOW));                    if (cb != null) {                        child.getMaster().setContainingBlock(cb);                        layoutAlternateFlowChild(c, child);                        child.setRequiresLayout(false);                        child.finish(c);                    } else {                        child.setRequiresLayout(false);                    }                }            }            c.restoreLayoutState(state);        }    }