class FilterServiceImpl implements FilterService, Constants {

    public List<Map<String, Object>> getEnvironmentsByAssetGroup(
            String assetGroup, String application, String domain)
            throws ServiceException {
        AssetCountDTO[] assetCountByEnvs;
      try{
        assetCountByEnvs = repository.getListOfEnvironments(assetGroup,
                application, domain);
      }catch(DataException e){
          throw new ServiceException(e);
      }
        noDataFoundCheck(assetCountByEnvs, null);
        return getAssetCountByAppOrEnv(assetCountByEnvs);
    }

}