public void prePersist(final Object ent, final DBObject dbObj,
final Mapper mapr) {
@SuppressWarnings("rawtypes")
final Set validate = validatorFactory.getValidator().validate(ent);
if (!validate.isEmpty()) {
throw new ConstraintViolationException(validate);
}
}