try {
Result<MailTemplate> res = StructrApp.getInstance(securityContext).nodeQuery(MailTemplate.class).andName(_name).and(locale, _locale).getResult();
if (!res.isEmpty() && res.size() > 1) {
hasError = true;
errorBuffer.add(MailTemplate.class.getName(), new UniqueToken(_uuid, name, _name));
errorBuffer.add(MailTemplate.class.getName(), new UniqueToken(_uuid, locale, _locale));
}
} catch (FrameworkException fe) {