code: @Override
      @Deprecated
      public CompletableFuture<io.pravega.client.batch.StreamInfo> getStreamInfo(final Stream stream) {
          Preconditions.checkNotNull(stream, "stream");
  
          StreamManagerImpl streamManager = new StreamManagerImpl(this.controller, this.connectionFactory);
          return streamManager.getStreamInfo(stream)
                              .thenApply(info -> new io.pravega.client.batch.StreamInfo(
                                      info.getScope(), info.getStreamName(), info.getTailStreamCut(), info.getHeadStreamCut()));
      }
docs: Used to fetch the StreamInfo of a given stream. This should be removed in time.
  @deprecated Use {@link io.pravega.client.admin.StreamManager#getStreamInfo(String, String)} to fetch StreamInfo.