code: private static boolean pathMatches(URI uri, HttpCookie cookie) {
          return normalizePath(uri.getPath()).startsWith(normalizePath(cookie.getPath()));
      }
docs: Return true iff. the path from {@code cookie} matches the path from {@code uri}.