@Transactional
@Override
public CustomerAccount persist(final CustomerAccount entity) throws EntityExistsException,
ConstraintViolationException {
final CustomerAccount pe = super.persist(entity);
if(pe != null) {
if(entity.isNew()) {
addHistoryRecord(new AccountHistoryContext(AccountHistoryOp.CUSTOMER_ACCOUNT_ADDED, pe));
}
}