code: public static Controller.StreamCut decode(final String scope, final String stream, Map<Long, Long> streamCut) {
          return Controller.StreamCut.newBuilder().setStreamInfo(createStreamInfo(scope, stream)).putAllCut(streamCut).build();
      }
docs: Creates a stream cut object.
  
  @param scope     scope
  @param stream    stream
  @param streamCut map of segment to position
  @return stream cut