private PageManifestDef loadRootPageDefinition(String manifestPathOrPath) throws ParserConfigurationException, SAXException, XPathExpressionException, IOException { PageManifestDef pmd = new PageManifestDef(); Document document = readPageDefinitionFile(manifestPathOrPath, pmd); pmd.setSelectorStrategy(selectorExpr.evaluate(document)); return pmd; }