textBox.clear();
final State textFactory = textBox.getTextFactory();
try
{
final RenderableTextFactory rtf =
(RenderableTextFactory) textFactory.restore(layoutProcess);
final RenderNode[] text =
createText(resolvedText, textBox.getLayoutContext(), rtf);
for (int i = 0; i < text.length; i++)
{
textBox.addGeneratedChild(text[i]);
}
final RenderNode[] renderNodes = rtf.finishText();
for (int i = 0; i < renderNodes.length; i++)
{
textBox.addGeneratedChild(renderNodes[i]);
}