element = processComposition(parent, "template", attrs, id, false);
} else if ("ui:define".equals(nodeName)) {
String name = attrs.getNamedItem("name").getNodeValue();
element = new LayoutDefine(parent, name);
} else if ("ui:insert".equals(nodeName)) {
LayoutInsert li = new LayoutInsert(parent, id);
Node nameAttr = attrs.getNamedItem("name");
String name = (nameAttr != null) ? nameAttr.getNodeValue() : null;
li.setName(name);
element = li;
// Let these be handled by the else below, and let's see what happens :)
} else if ("ui:component".equals(nodeName)) {
element = processComponent(parent, node, attrs, id, true);
} else if ("ui:fragment".equals(nodeName)) {