class ComplianceController implements Constants {

    @RequestMapping(path = "/v1/tagging", method = RequestMethod.GET)
    public ResponseEntity<Object> getTagging(@RequestParam("ag") String assetGroup,
            @RequestParam(name = "targettype", required = false) String targetType) {
        if (Strings.isNullOrEmpty(assetGroup)) {
            return ResponseUtils.buildFailureResponse(new Exception(ASSET_MANDATORY));
        }
        OutputDTO output = null;
        try {
            output = new OutputDTO(complianceService.getTagging(assetGroup, targetType));
        } catch (ServiceException e) {
              return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(output);
    }

}