((BranchElement) paragraph).replace(0, 1, leaves);
BranchElement branch = (BranchElement) doc.createBranchElement(root, null);
leaves = new Element[1];
leaves[0] = doc.createLeafElement(branch, null, 16, 21);
branch.replace(0, 0, leaves);
branch.addAttributes(boldFalse);
branch.addAttributes(italicFalse);
// Add this branch to the root
((BranchElement) root).replace(1, 0, new Element[] { branch });
}