class ComplianceController implements Constants {

    @RequestMapping(path = "/v1/policydescription", method = RequestMethod.GET)
    
    public ResponseEntity<Object> getPolicyDescription(@RequestParam("ruleId") String ruleId) {

        if (Strings.isNullOrEmpty(ruleId)) {
            return ResponseUtils.buildFailureResponse(new Exception("ruleId Mandatory"));
        }
        PolicyDescription response = null;
        try {
            response = new PolicyDescription(complianceService.getRuleDescription(ruleId));

        } catch (ServiceException e) {
           return complianceService.formatException(e);
        }
        return ResponseUtils.buildSucessResponse(response);
    }

}