class StreamOutputEntityProvider implements EntityProvider<StreamingOutput> {

    @Override
    public void writeTo(StreamingOutput streamingOutput,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType,
                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream) throws IOException {
        streamingOutput.write(entityStream);
    }

}