try {
RouterController routerController = RequestContextUtils.getWebApplicationContext(request).getBean(
RouterController.class);
routerController.writeJsonResponse(request, response, extDirectResponse, jsonView);
} catch (IOException e) {
LogFactory.getLog(getClass()).error("buildAndWrite", e);
throw new RuntimeException(e);
}