/* Check the constraint. */
ICriterionTypeDAO criterionTypeDAO = Registry.getCriterionTypeDAO();
if (isNewObject()) {
return !criterionTypeDAO.existsByNameAnotherTransaction(this);
} else {
try {
CriterionType c =
criterionTypeDAO.findUniqueByNameAnotherTransaction(name);
return c.getId().equals(getId());