code: @Override
  	protected void afterPaint(final RenderContext renderContext) {
  		if (renderContext instanceof WebXmlRenderContext) {
  			PrintWriter writer = ((WebXmlRenderContext) renderContext).getWriter();
  			writer.println(WebUtilities.encode(message));
  
  			if (error != null) {
  				writer.println("\n<br/>\n<pre>\n");
  
  				StringWriter buf = new StringWriter();
  				error.printStackTrace(new PrintWriter(buf));
  				writer.println(WebUtilities.encode(buf.toString()));
  
  				writer.println("\n</pre>");
  			}
  		}
  	}
docs: Override in order to paint the component. Real applications should not emit HTML directly.
  
  @param renderContext the renderContext to send output to.