class PatchingRepositoryImpl implements PatchingRepository, Constants {

    @Override
    public List<Map<String, Object>> getOnpremResourceInfo(String assetGroup,
            Map<String, String> filters) throws DataException {

        Map<String, Object> mustFilter = new HashMap<>();
        mustFilter.put(LATEST, true);
        mustFilter.put("inScope.keyword", true);

        Map<String, Object> mustTermsFilter = new HashMap<>();

        Map<String, Object> mustNotTermsFilter = new HashMap<>();

        Map<String, Object> mustNotFilter = new HashMap<>();

        Map<String, Object> mustNotWildCardFilter = new HashMap<>();

        if (null != filters && filters.size() > 0) {
            filters.forEach((key, value) -> mustFilter.put(key, value));
        }
        try{
        return elasticSearchRepository
                .getSortedDataFromESWithMustNotTermsFilter(assetGroup,
                        ONPREMSERVER, mustFilter, mustNotFilter, null, Arrays
                                .asList(RESOURCEID, "ip_address", "host_name",
                                        "kernel_release", TAGS_APPLICATION,
                                        "tags.Environment"), mustTermsFilter,
                        mustNotTermsFilter, mustNotWildCardFilter, null);
        } catch(Exception e){
            throw new DataException(e);
        }
    }

}