class ProjectionRepositoryImpl implements ProjectionRepository, Constants {

    @SuppressWarnings("deprecation")
    public List<Map<String, Object>> getAppsDetails(String appType) throws DataException {
        Map<String, Object> mustFilter = new HashMap<>();
        mustFilter.put("_appType.keyword", appType);
        mustFilter.put("latest", true);
        ArrayList<String> fields = new ArrayList<>();
        fields.add("appTag");
        fields.add("director");
        fields.add("executiveSponsor");
        try {
            return esRepository.getSortedDataFromESBySize("aws_apps", "apps", mustFilter, null, null, fields, 0,
                    TEN_THOUSAND, null, null, null);
        } catch (Exception e) {
            logger.error(e);
            throw new DataException(e);
        }
    }

}