Use RenderStringPair class to replace using getX() and getXHtml()