}
private class FormContainerImpl extends AbstractFormContainer {
public OfficeFormsElement getFormContainerElement() {
OfficeFormsElement forms = null;
try {
OfficeTextElement root = getContentRoot();
forms = OdfElement.findFirstChildNode(OfficeFormsElement.class,
root);
if (forms == null) {
Node firstChild = root.getFirstChild();
OfficeFormsElement officeForms = ((OdfFileDom) getContentDom())
.newOdfElement(OfficeFormsElement.class);
forms = (OfficeFormsElement) root.insertBefore(officeForms,
firstChild);
}
return forms;