LOGGER.log(Level.WARNING, getStackTrace(exception));
// provide custom handling of authorization exception
if (exception instanceof AuthorizationException) {
AuthorizationExceptionDto exceptionDto = AuthorizationExceptionDto.fromException((AuthorizationException)exception);
return Response
.status(Status.FORBIDDEN)
.entity(exceptionDto)
.type(MediaType.APPLICATION_JSON_TYPE)