MediaType resolvedContentType = resolveContentType(httpRequest,
httpRequest.getHttpHeaders().getMediaType());
ServerResponse responseInvoker = getResponse(model, resolvedContentType);
if (responseInvoker != null)
{
responseInvoker.writeTo(httpRequest, response, dispatcher.getProviderFactory());
}
}
catch (Exception e)
{
dispatcher.handleWriteResponseException(httpRequest, response, e);