element = processComposition(parent, "template", attrs, id, true);
} else if ("ui:decorate".equals(nodeName)) {
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);