String textAfterStrongElement) {
DOMFactory factory = DOMFactory.getDefaultInstance();
rootElement = factory.createElement("body");
Text text = factory.createText();
text.append(textBeforeStrongElement);
rootElement.addTail(text);
strongElement = factory.createElement("strong");
Text strongText = factory.createText();
strongText.append(textWithinStrongElement);
strongElement.addTail(strongText);
rootElement.addTail(strongElement);
Text textNodeAfterStrongElement = factory.createText();
textNodeAfterStrongElement.append(textAfterStrongElement);
rootElement.addTail(textNodeAfterStrongElement);
}