// Create object for r
R r = wmlObjectFactory.createR();
p.getContent().add( r);
// Create object for fldChar (wrapped in JAXBElement)
FldChar fldchar = wmlObjectFactory.createFldChar();
JAXBElement<org.docx4j.wml.FldChar> fldcharWrapped = wmlObjectFactory.createRFldChar(fldchar);
r.getContent().add( fldcharWrapped);
fldchar.setFldCharType(org.docx4j.wml.STFldCharType.BEGIN);
// Create object for instrText (wrapped in JAXBElement)
Text text = wmlObjectFactory.createText();
JAXBElement<org.docx4j.wml.Text> textWrapped = wmlObjectFactory.createRInstrText(text);
r.getContent().add( textWrapped);
text.setValue( instrText);
text.setSpace( "preserve");
// Create object for fldChar (wrapped in JAXBElement)
fldchar = wmlObjectFactory.createFldChar();
fldcharWrapped = wmlObjectFactory.createRFldChar(fldchar);
r.getContent().add( fldcharWrapped);
fldchar.setFldCharType(org.docx4j.wml.STFldCharType.END);
}