public void validateAfterCommit() {
   LayoutModelBuilderContext c = context;
   while (c != null) {
     c.validateAfterCommit();
     c = c.getParent();
   }
 }
 public void restoreStateAfterRollback() {
   LayoutModelBuilderContext c = context;
   while (c != null) {
     c.restoreStateAfterRollback();
     c = c.getParent();
   }
 }
  public boolean isEmptyElementsHaveSignificanceInParent() {
    final LayoutModelBuilderContext parent = this.context.getParent();
    if (parent == null) {
      return false;
    }

    final RenderBox box = parent.getRenderBox();
    return box.isEmptyNodesHaveSignificance();
  }
 private RenderBox getLayoutRoot() {
   LayoutModelBuilderContext context = this.context;
   while (context != null) {
     if (context.getParent() == null) {
       return context.getRenderBox();
     }
     context = context.getParent();
   }
   throw new IllegalStateException();
 }
  public void performParanoidModelCheck(final RenderBox logicalPageBox) {
    LayoutModelBuilderContext c = context;
    while (c != null) {
      c.performParanoidModelCheck();

      final RenderBox renderBox = c.getRenderBox();
      testIsLogicalPageParent(renderBox, logicalPageBox);

      c = c.getParent();
    }
  }
 public RenderNode dangerousRawAccess() {
   return context.getRenderBox();
 }
 public void legacyFlagNotEmpty() {
   context.setEmpty(false);
 }
 public LayoutModelBuilder deriveForStorage(final RenderBox clonedContent) {
   final DefaultLayoutModelBuilder clone = clone();
   clone.context = context.deriveForStorage(clonedContent);
   return clone;
 }
 public LayoutModelBuilder deriveForPageBreak() {
   final DefaultLayoutModelBuilder clone = clone();
   clone.context = context.deriveForPagebreak();
   return clone;
 }
 public void print() {
   ModelPrinter.INSTANCE.print(context.getRenderBox());
 }
 public boolean isEmpty() {
   return context.isEmpty();
 }