public Account findOneWithAllDetails(long id) {
   if (id < 1) {
     throw new SpecifiedEntityNotFoundException("account");
   }
   Account existedAccount = accountRepository.findOneWithAllDetails(id);
   if (existedAccount == null) {
     throw new SpecifiedEntityNotFoundException("account");
   }
   return existedAccount;
 }
 public Account findOneByToken(String token) {
   return accountRepository.findOneByToken(token);
 }
 public Page<Account> findAll(AccountAdvancedSearchCriteria criteria, PageRequest pageRequest) {
   return accountRepository.findAll(criteria, pageRequest);
 }
 public Map<AccountType, Long> generateStatistics() {
   return accountRepository.generateStatistics();
 }