+ /**
+ * Logs a warning if an invalid RIC instance key is used.
+ *
+ * @param ex
+ * The exception
+ * @param request
+ * The original request
+ * @return A response entity with status code 400
+ */
+ @ExceptionHandler({ UnknownInstanceException.class })
+ public final ResponseEntity<ErrorTransport> handleUnknownInstanceException(Exception ex, WebRequest request) {
+ log.warn("handleUnknownInstanceException: request {}, exception {}", request.getDescription(false),
+ ex.toString());
+ return new ResponseEntity<>(new ErrorTransport(400, ex), HttpStatus.BAD_REQUEST);
+ }
+