class CostRepository {

	public List<String> fetchApplicationMasterList() {
		List<String> cloudApps = new ArrayList<>();
		Map<String, Object> mustFilter = new HashMap<>();
		mustFilter.put("_appType.keyword","Cloud");
		mustFilter.put("latest",true);
	
		List<String> sourceFields = new ArrayList<>();
		sourceFields.add("appTag");
		try {
			List<Map<String, Object>> result = elasticSearchRepository.getDataFromES("aws_apps", "apps", mustFilter,
	         null, null, sourceFields, null);
			cloudApps = result.stream().filter(app-> app.get("appTag")!=null).map(app-> app.get("appTag").toString()).collect(Collectors.toList());
		} catch (Exception e) {
			LOGGER.error("Error fetching applications",e);
		}
		return cloudApps;
	}

}