if (writer == null)
{
throw new RuntimeException("could not find writer for content-type "
+ bodyContentType + " type: " + bodyType.getName());
}
new ClientMessageBodyWriterContext(getWriterInterceptors(), writer, body,
bodyType, bodyGenericType, bodyAnnotations, bodyContentType,
headers, outputStream, attributes).proceed();
}