}
//Aggressive exception handling to make sure at least something is written out when an error happens.
try {
final String characterEncoding = response.getCharacterEncoding();
final RenderPortletOutputHandler renderPortletOutputHandler = new RenderPortletOutputHandler(characterEncoding);
this.portletRenderResult = this.portletRenderer.doRenderMarkup(errorPortletWindowId, wrappedRequest, response, renderPortletOutputHandler);
doPostExecution(null);
this.output = renderPortletOutputHandler.getOutput();
}
catch (Exception e) {
doPostExecution(e);
this.logger.error("Exception while dispatching to error handling portlet", e);
this.output = "Error Portlet Unavailable. Please contact your portal adminstrators.";