class ComplianceController implements Constants {

    @RequestMapping(path = "/v1/issues", method = RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<Object> getIssues(@RequestBody(required = false) Request request) {
        String assetGroup = request.getAg();
        Map<String, String> filters = request.getFilter();

        if (Strings.isNullOrEmpty(assetGroup) || MapUtils.isEmpty(filters)
                || Strings.isNullOrEmpty(filters.get(DOMAIN))) {
            return ResponseUtils.buildFailureResponse(new Exception(ASSET_GROUP_DOMAIN));
        }
        ResponseWithOrder response = null;
        try {
            response = complianceService.getIssues(request);
        } catch (ServiceException e) {
           return complianceService.formatException(e);
        }

        return ResponseUtils.buildSucessResponse(response);
    }

}