if (entity instanceof Timestampable) {
((Timestampable) entity).setModifiedDate(new Date());
}
result = this.entityManager.merge(entity);
} catch (ConstraintViolationException e) {
throw new DataConstraintException(e);
} catch (Exception e) {
throw e;
}
return result;