}
@Override
@Transactional("blTransactionManager")
public CustomerPayment setAsDefaultPayment(CustomerPayment payment) {
CustomerPayment oldDefault = findDefaultPaymentForCustomer(payment.getCustomer());
if (oldDefault != null) {
oldDefault.setDefault(false);
saveCustomerPayment(oldDefault);
}
payment.setDefault(true);
return saveCustomerPayment(payment);
}