code: public static <R extends Resource> Optional<R> findResource(Stream<R> stream,
                                                                  String path) {
          return findFirstResource(stream.filter(r -> r.getPath().equals(path)));
      }
docs: Finds the first resource in stream that matches given path.
  
  @param stream A stream of resources.
  @param path   The path to search for.
  @param <R>    The resource implementation.
  @return A matching resource, if found.