class FilterServiceImpl implements FilterService, Constants {

    public List<Map<String, Object>> getFilters(int filterId, String domain)
            throws ServiceException {
        List<Map<String, Object>> filters;
        try{
            filters = repository
                .getFiltersFromDb(filterId);
    }catch(DataException e){
        throw new ServiceException(e);
    }
        if (null != domain && !INFRA_AND_PLATFORMS.equalsIgnoreCase(domain))
            filters.removeIf(f -> (f.get("optionName").equals(
                    REGION_DISPALY_NAME) || f.get("optionName").equals(
                    ACCOUNT_NAME)));
       if(filters.isEmpty()){
           throw new ServiceException(NO_DATA_FOUND);
       }
        return filters;

    }

}