MediaType mediaType, Annotation[] annotations,
MultivaluedMap<String, Object> requestHeaders,
OutputStream outputStream) throws IOException
{
final Map<String, Object> attributes = new HashMap<String, Object>();
AbstractWriterInterceptorContext messageBodyWriterContext = new ClientWriterInterceptorContext(interceptors, factory, toOutput, type,
genericType, annotations, mediaType, requestHeaders, outputStream, attributes);
messageBodyWriterContext
.proceed();
}