@Override
 public Response toResponse(NotFoundException exception) {
   return Response.status(Response.Status.NOT_FOUND)
       .entity(
           String.format(
               "{\"message\":\"%s\"}",
               StringEscapeUtils.ESCAPE_JSON.translate(exception.getMessage())))
       .type(MediaType.APPLICATION_JSON)
       .build();
 }
 @Override
 public Response toResponse(NotFoundException e) {
   return Response.status(HttpStatus.NOT_FOUND.value())
       .entity(new ErrorWrapper(e.getMessage()))
       .build();
 }