if (!(parent instanceof ComponentInfo)) throw new UiException(message("<attribute> cannot be the root element", el)); parseAttribute(pgdef, (ComponentInfo) parent, el, annHelper); } else if ("template".equals(nm) && isZkElement(langdef, nm, pref, uri, bNativeContent)) { parseItems(pgdef, parseTemplate(parent, el, annHelper), el.getChildren(), annHelper, bNativeContent);