@Override
 public Response toResponse(BadRequestException exception) {
   return ExceptionMapperUtils.buildResponseWithCors(exception, Response.Status.BAD_REQUEST);
 }
 @Override
 public Response toResponse(Exception exception) {
   return ExceptionMapperUtils.buildResponse(exception, INTERNAL_SERVER_ERROR);
 }
 @Override
 public Response toResponse(IllegalArgumentException exception) {
   return ExceptionMapperUtils.buildResponse(exception, BAD_REQUEST);
 }
 @Override
 public Response toResponse(NotSupportedException exception) {
   return ExceptionMapperUtils.buildResponseWithCors(
       exception, Response.Status.UNSUPPORTED_MEDIA_TYPE);
 }