class TaggingServiceImpl implements TaggingService, Constants {

    public Map<String, Object> getTaggingSummary(String assetGroup) throws ServiceException {
        List<String> mandatoryTagsList = new ArrayList<>();
        String ruleMandatoryTags = mandatoryTags;
        if (!StringUtils.isEmpty(ruleMandatoryTags)) {
            mandatoryTagsList = Arrays.asList(ruleMandatoryTags.split(","));
        }
        Map<String, Object> totalMap = new HashMap<>();
        List<Map<String, Object>> unTagsList = new ArrayList<>();
        Map<String, Long> tagMap;
        try {
            tagMap = complainceRepository.getTagging(assetGroup, null);
        } catch (DataException e) {
            throw new ServiceException(e);
        }
        unTagsList = getUnTaggedListData(unTagsList, assetGroup, mandatoryTagsList, tagMap);
        totalMap.put("untaggedList", unTagsList);
        totalMap.put("overallCompliance", tagMap.get("compliance"));

        return totalMap; 
    }

}