private AbstractChoice readChoice(Element choiceElement) {
        String method=nullIfEmpty(choiceElement.getAttribute("method"));
        if (XML.getChildren(choiceElement,"map").size()>0)
            return readMapChoice(choiceElement,method);
        else
            return readNonMapChoice(choiceElement,method);
    }
Returns the page element corresponding to the given node, never null
container-search/src/main/java/com/yahoo/search/pagetemplates/config/PageTemplateXMLReader.java