class PatchingRepositoryImpl implements PatchingRepository, Constants {

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

        Map<String, Object> mustFilter = new HashMap<>();
        mustFilter.put(LATEST, true);
        mustFilter.put(STATE_NAME, RUNNING);
        Map<String, Object> mustNotFilter = new HashMap<>();
        mustNotFilter.put(PLATFORM, WINDOWS);

        if (null != filters && filters.size() > 0) {
            filters.forEach((key, value) -> mustFilter.put(key, value));
        }
try{
        return elasticSearchRepository
                .getSortedDataFromES(assetGroup, "ec2", mustFilter,
                        mustNotFilter, null, Arrays.asList("tags.Name",
                                TAGS_APPLICATION, RESOURCEID,
                                "tags.Environment", "accountname", "vpcid",
                                "privateipaddress"), null, null);
} catch(Exception e){
    throw new DataException(e);
}
    }

}