code: public boolean shouldProfile(String url)
    {
      // Don't profile requests to to results servlet
      if (url.startsWith(servletURL))
      {
        return false;
      }
  
      if (!restrictedURLs.isEmpty())
      {
        boolean matches = false;
        for (Pattern p : restrictedURLs)
        {
          if (p.matcher(url).find())
          {
            matches = true;
          }
        }
        if (!matches)
        {
          return false;
        }
      }
  
      if (restricted)
      {
        if (us.isUserLoggedIn())
        {
          if (restrictedToAdmins && !us.isUserAdmin())
          {
            return false;
          }
          if (!restrictedEmails.isEmpty() && !restrictedEmails.contains(us.getCurrentUser().getEmail()))
          {
            return false;
          }
        } else
        {
          return false;
        }
      }
      return true;
    }
docs: Whether the specified URL should be profiled given the current
  configuration of the filter.
  
  @param url
  The URL to check.
  @return Whether the URL should be profiled.