public List<PageElement> elements(@SuppressWarnings("rawtypes") Class pageTemplateModelElementClass) {
        if (isFrozen()) { // Use precalculated lists
            if (pageTemplateModelElementClass==Section.class)
                return sections;
            else if (pageTemplateModelElementClass==Source.class)
                return sources;
            else if (pageTemplateModelElementClass==Renderer.class)
                return renderers;
        }
        return createElementList(pageTemplateModelElementClass);
    }
Convenience method which returns the elements <b>and choices</b> of the given type in elements as a
read-only list. Not that as this returns both concrete elements and choices betwen them,
the list element cannot be case to the given class - this must be used in conjunction
with a resolve which contains the resolution to the choices.

@param pageTemplateModelElementClass type to returns elements and choices of, a subtype of PageElement
container-search/src/main/java/com/yahoo/search/pagetemplates/model/Section.java