code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WHeading heading = (WHeading) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  
  		xml.appendTagOpen("ui:heading");
  		xml.appendAttribute("id", component.getId());
  		xml.appendOptionalAttribute("class", component.getHtmlClass());
  		xml.appendOptionalAttribute("track", component.isTracking(), "true");
  		xml.appendAttribute("level", heading.getHeadingLevel().getLevel());
  		xml.appendOptionalAttribute("accessibleText", heading.getAccessibleText());
  		xml.appendClose();
  
  		// Render margin
  		MarginRendererUtil.renderMargin(heading, renderContext);
  
  		if (heading.getDecoratedLabel() == null) {
  			// Constructed with a String
  			xml.append(heading.getText(), heading.isEncodeText());
  		} else {
  			heading.getDecoratedLabel().paint(renderContext);
  		}
  
  		xml.appendEndTag("ui:heading");
  	}
docs: Paints the given WHeading.
  
  @param component the WHeading to paint.
  @param renderContext the RenderContext to paint to.