code: protected void applyStreaming(ContainerRequestContext requestContext, WriterInterceptorContext context)
              throws IOException {
  
          Object entity = context.getEntity();
          StreamingProcess<Object> process = MessageHelper.getStreamingProcess(context.getEntity(), manager);
  
          if (process != null) {
              ContainerResponseContext responseContext =
                      (ContainerResponseContext) requestContext.getProperty(RESP_PROP_N);
              responseContext.setStatusInfo(Response.Status.PARTIAL_CONTENT);
              context.getHeaders().putSingle(ACCEPT_RANGES, BYTES_RANGE);
              context.setType(StreamingOutput.class);
              context.setEntity(new MediaStreaming(
                              entity,
                      requestContext.getHeaderString(MediaStreaming.RANGE),
                              process,
                              context.getMediaType(),
                              context.getHeaders()
                      )
              );
          }
      }
docs: <p>applyStreaming.</p>
  
  @param requestContext a {@link javax.ws.rs.container.ContainerRequestContext} object.
  @param context a {@link javax.ws.rs.ext.WriterInterceptorContext} object.
  @throws java.io.IOException if any.