if (element.getName().equals("template")) {
String title = element.elementText("title");
String name = element.elementText("name");
name = name == null ? title : name;
String content = element.elementText("content");
StructureTemplateType type = StructureTemplateType.valueOf(
element.elementText("type"));
StructureTemplateEntity template = getDao()
.getStructureTemplateDao().getByName(name);
if (template == null) {
template = new StructureTemplateEntity(name,