public void startDocument()
throws IOException, NormalizationException
{
styleResolver.initialize(layoutProcess);
final DefaultPageContext dpc = new DefaultPageContext();
final PageAreaType[] pat = PageAreaType.getPageAreas();
for (int i = 0; i < pat.length; i++)
{
final PageAreaType pageAreaType = pat[i];
final LayoutStyle style = styleResolver.resolvePageStyle
(CSSAutoValue.getInstance(), new PseudoPage[0], pageAreaType);
dpc.setAreaDefinition(pageAreaType, style);
}
final LayoutStyle areaDefinition =
dpc.getAreaDefinition(PageAreaType.CONTENT);
modelBuilder.startDocument(dpc);
}