code: private boolean registerStream(IClientStream stream) {
          if (streams.putIfAbsent(stream.getStreamId().doubleValue(), stream) == null) {
              usedStreams.incrementAndGet();
              return true;
          }
          log.error("Unable to register stream {}, stream with id {} was already added", stream, stream.getStreamId());
          return false;
      }
docs: Store a stream in the connection.
  
  @param stream