code: public static void renderDiagnostics(final Diagnosable component, final WebXmlRenderContext renderContext) {
  		List<Diagnostic> diags = component.getDiagnostics(Diagnostic.ERROR);
  		if (diags != null) {
  			renderHelper(renderContext, component, diags, Diagnostic.ERROR);
  		}
  		diags = component.getDiagnostics(Diagnostic.WARNING);
  		if (diags != null) {
  			renderHelper(renderContext, component, diags, Diagnostic.WARNING);
  		}
  		diags = component.getDiagnostics(Diagnostic.INFO);
  		if (diags != null) {
  			renderHelper(renderContext, component, diags, Diagnostic.INFO);
  		}
  		diags = component.getDiagnostics(Diagnostic.SUCCESS);
  		if (diags != null) {
  			renderHelper(renderContext, component, diags, Diagnostic.SUCCESS);
  		}
  	}
docs: Render diagnostics for the component.
  @param component the component being rendered
  @param renderContext the RenderContext to paint to.