XmlBeans.assertTrue( s.isContainer() );
}
s.removeContent( r, true );
CopyContext copyContext = (CopyContext) copies.get( i );
Splay copyTree = copyContext.getTree();
if (copyTree != null)
{
char[] textCopy = copyContext.getText();
s.insert(
r, 1, copyTree, textCopy, 0, textCopy == null ? 0 : textCopy.length, true );
}