element.addAttribute("TEXT", leafText);
}
// NODE
else {
CriteriaNode node = (CriteriaNode) criteriaTreeNode;
element.addAttribute("TEXT", node.getName());
// add children
for (CriteriaTreeNode child : node.getChildren()) {
addSubTreeFreemind(element, child);
}
}
}