map.put("javax.servlet.error.servlet_name", "javax.faces.webapp.FacesServlet"); // Best we can do ...
// Dispatch to the specified error handler
context.responseComplete();
// force a destroy before dispatching to the error page
econtext.getRequestMap().remove(FacesConstants.VIEWS_INITIALIZED);
econtext.dispatch(path);
} catch (IOException e) {
handleException(context, e);
}