super.writeInternal(object, outputMessage);
}
}
protected void writeView(DataView view, HttpOutputMessage outputMessage)
throws IOException, HttpMessageNotWritableException {
JsonEncoding encoding = getJsonEncoding(outputMessage.getHeaders().getContentType());
ObjectWriter writer = getWriterForView(view.getView());
JsonGenerator jsonGenerator =
writer.getFactory().createGenerator(outputMessage.getBody(), encoding);
try {
writer.writeValue(jsonGenerator, view.getData());