code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WText text = (WText) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  
  		String textString = text.getText();
  
  		if (textString != null) {
  			if (text.isEncodeText()) {
  				xml.print(WebUtilities.encode(textString));
  			} else {
  				// If we are outputting unencoded content it must be XML valid.
  				xml.print(HtmlToXMLUtil.unescapeToXML(textString));
  			}
  		}
  	}
docs: Paints the given WText.
  
  @param component the WText to paint.
  @param renderContext the RenderContext to paint to.