private MapChoice readMapChoice(Element choiceElement,String method) {
        Element mapElement=XML.getChildren(choiceElement,"map").get(0);
        MapChoice map=new MapChoice();
        map.setMethod(method);

        map.placeholderIds().addAll(readSpaceSeparatedAttribute("to",mapElement));
        for (Element value : XML.getChildren(mapElement)) {
            if ("item".equals(value.getNodeName()))
                map.values().add(readPageElements(value));
            else
                map.values().add(List.of(readPageElement(value)));
        }
        return map;
    }
Returns the page element corresponding to the given node, never null
container-search/src/main/java/com/yahoo/search/pagetemplates/config/PageTemplateXMLReader.java