class StrategyEndpoint {
    @Autowired
    private StrategyResource strategyResource;

    @RequestMapping(path = "/validate-expression", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity<?> validateExpression(@RequestParam String expression, @RequestParam(defaultValue = "", required = false) String validation) {
        return doValidateExpression(expression, validation);
    }

    @RequestMapping(path = "/validate-route", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity<?> validateRoute(@RequestParam String routeType, @RequestParam(defaultValue = "", required = false) String validation) {
        return doValidateRoute(routeType, validation);
    }

    private ResponseEntity<?> doValidateExpression(String expression, String validation) {<FILL_FUNCTION_BODY>}

    private ResponseEntity<?> doValidateRoute(String routeType, String validation) {
        try {
            String route = strategyResource.validateRoute(routeType, validation);

            return ResponseUtil.getSuccessResponse(route);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    }
}

        try {
            boolean result = strategyResource.validateExpression(expression, validation);

            return ResponseUtil.getSuccessResponse(result);
        } catch (Exception e) {
            return ResponseUtil.getFailureResponse(e);
        }
    
<no_super_class>