*/
public AreaTree buildAreaTree(final String file) throws FOrayException {
final FoDocumentReader foReader = FoDocumentReader.getInstance();
final FOTreeBuilder foTree = foReader.buildFoTree(file);
final Root root = foTree.getRootFo();
final AreaTree areaTree = this.areaTreeFactory.makeAreaTree(root);
final PioneerLS layout = this.layoutFactory.makeLayout();
final Iterator<PageSequence> iterator = root.getPageSequenceIterator();
while (iterator.hasNext()) {
final PageSequence pageSequence = iterator.next();
try {
final PageCollection collection = areaTree.makePageCollection(
pageSequence);
layout.formatPageSequence(collection);
} catch (final AreaTreeException e) {
throw new FOrayException(e);
}