/**
  * Calls AccountDaoImpl delete() method
  *
  * @param id - Account id
  * @throws SQLException
  */
 @Override
 public void delete(Long id) throws ServiceException {
   Session session = util.getSession();
   Transaction transaction = null;
   try {
     transaction = session.beginTransaction();
     accountDao.delete(id);
     transaction.commit();
     logger.info(TRANSACTION_SUCCEEDED);
     logger.info("Deleted account #" + id);
   } catch (DaoException e) {
     TransactionUtil.rollback(transaction, e);
     logger.error(TRANSACTION_FAILED, e);
     throw new ServiceException(TRANSACTION_FAILED + e);
   }
 }