public boolean isUniqueNameConstraint() {
if (StringUtils.isBlank(name)) {
return true;
}
ICalendarExceptionTypeDAO calendarExceptionTypeDAO = getIntegrationEntityDAO();
if (isNewObject()) {
return !calendarExceptionTypeDAO.existsByNameAnotherTransaction(
name);
} else {
try {
CalendarExceptionType calendarExceptionType = calendarExceptionTypeDAO
.findUniqueByNameAnotherTransaction(name);
return calendarExceptionType.getId().equals(getId());
} catch (InstanceNotFoundException e) {
return true;
} catch (NonUniqueResultException e) {