code: private void addURIToAuthorize(final HttpServletRequest httpRequest, final URI uri) {
          @SuppressWarnings("unchecked")
          Set<URI> targetURIs = (Set<URI>) httpRequest.getAttribute(URIS_TO_AUTHORIZE);
          if (targetURIs == null) {
              targetURIs = new HashSet<>();
              httpRequest.setAttribute(URIS_TO_AUTHORIZE, targetURIs);
          }
          targetURIs.add(uri);
      }
docs: Add URIs to collect permissions information for.
  
  @param httpRequest the request.
  @param uri the uri to check.