* @param contentText The content that the document should have.
* @return The document with the given content.
*/
public static DocInitialization createContent(String contentText) {
if (contentText.isEmpty()) {
return (new DocInitializationBuilder())
.elementStart("body", new AttributesImpl())
.elementStart("line", new AttributesImpl())
.elementEnd()
.elementEnd()
.build();
} else {
return new DocInitializationBuilder()
.elementStart("body", new AttributesImpl())
.elementStart("line", new AttributesImpl())
.elementEnd()
.characters(contentText)
.elementEnd()