public void readTags(Element tagsElement, Long parent) throws DaoTaskException {
for (Iterator<Element> i = tagsElement.elementIterator();
i.hasNext(); ) {
Element element = i.next();
if (element.getName().equals("tag")) {
String name = element.elementText("name");
String title = element.elementText("title") != null ?
element.elementText("title") : name;
TagEntity tag = getDao().getTagDao().getByName(parent, name);
if (tag == null) {
tag = new TagEntity(parent, name, title);