public boolean checkAccountStatus(Long id) throws ServiceException {
   boolean isBlocked;
   Session session = util.getSession();
   Transaction transaction = null;
   try {
     transaction = session.beginTransaction();
     isBlocked = accountDao.isAccountStatusBlocked(id);
     transaction.commit();
     logger.info(TRANSACTION_SUCCEEDED);
   } catch (DaoException e) {
     TransactionUtil.rollback(transaction, e);
     logger.error(TRANSACTION_FAILED, e);
     throw new ServiceException(TRANSACTION_FAILED + e);
   }
   return isBlocked;
 }