"ControllerAdvice received a RestException in its generic Exception handler";
assert !(ex instanceof AccessDeniedException) :
"ControllerAdvice received a AccessDeniedException in its generic Exception handler";
ExceptionLog exceptionLog = new ExceptionLog(ex);
exceptionLogService.storeExceptionLog(exceptionLog);
log.error("Uncaught exception - logging with ID " + exceptionLog.getUUID() + ".");
ModelAndView mav = new ModelAndView("exception", "uuid", exceptionLog.getUUID());
mav.addObject("logId", exceptionLog.getId());
return mav;
}