code: public Observable<Product> getProduct(int productId) {
      return getAllProducts().flatMap(products -> Observable.fromIterable(products))
          .filter(product -> product.getId() == productId)
          .take(1);
    }
docs: Get the product with the given id
  
  @param productId The product id