TextPElement pElement = ((OdfFileDom) refElement.getOwnerDocument()).newOdfElement(TextPElement.class);
OdfElement parentEle = (OdfElement) refElement.getParentNode();
parentEle.insertBefore(pElement, refElement.getNextSibling());
textVariableSetElement = pElement.newTextVariableSetElement(0, "string", name);
}
textVariableSetElement.removeAttributeNS(officeNS, "value");
textVariableSetElement.setOfficeStringValueAttribute(value);
textVariableSetElement.setTextContent(value);
break;
case USER:
userVariableElement.setOfficeValueTypeAttribute("string");