code: public final WebPage getRootPage() throws IOException, SQLException {
  		WebPage page = this;
  		WebPage parent;
  		while ((parent = page.getParent()) != null) page = parent;
  		return page;
  	}
docs: Gets the root page in the web page hierarchy.  The root page has no parent.