State html = processor.defaultState();
// Core rules for SiteMesh to be functional.
html.addRule(new HeadExtractingRule(head)); // contents of <head>
html.addRule(new BodyTagRule(page, body)); // contents of <body>
html.addRule(new TitleExtractingRule(page)); // the <title>
html.addRule(new FramesetRule(page)); // if the page is a frameset
// Additional rules - designed to be tweaked.
addUserDefinedRules(html, page);