}
private void forwardErrorToView(final Route errorRoute, final Throwable rootCause,
final HttpServletRequest request, final HttpServletResponse response) throws ServletException {
try {
final View view = new View(errorViewResolver.resolveViewPathFor(errorRoute), rootCause);
request.setAttribute(ErrorRoute.DEFAULT.getExceptionAttrName(), view.getModel());
request.getRequestDispatcher(view.getViewPath()).forward(request, response);
} catch (IOException e) {
throw new ServletException(e.getMessage(), e);
}
}