private void verifyAccess(final HttpServletRequest request, final HttpServletResponse response) {
final String resourceUri = getResourceUri(request);
if (!authManager.isAuthorized(resourceUri)) {
LOG.debug("[FAIL] Unauthorized proxy resource: {}", resourceUri);
response.setStatus(HttpServletResponse.SC_FORBIDDEN);
throw new UnauthorizedRequestException("Unauthorized resource request detected: " + resourceUri);
}
}