PageBox first = Layer.createPageBox(layout, "first");
rootBox.setContainingBlock(new ViewportBox(new Rectangle(0, 0,
first.getContentWidth(layout), first
.getContentHeight(layout))));
rootBox.layout(layout);
long end = System.currentTimeMillis();
XRLog.layout(Level.INFO, "Layout took " + (end - start) + "ms");
} catch (Throwable e) {
XRLog.exception(e.getMessage(), e);