// Manage redirects and missing pages
updateRedirect(root, pages);
// Set disambiguation status
XPath xpa = XPath.newInstance("/api/query/pages/page");
List results = xpa.selectNodes(root);
Iterator iter = results.iterator();
XPath xpaTitle = XPath.newInstance("./@title");
XPath xpaTemplate = createXPath("templates/tl", "ns", "" + Namespace.TEMPLATE);
List<Page> tmpPages = new ArrayList<Page>();
while (iter.hasNext()) {