XText xDocText = m_xDoc.getText();
XTextCursor xDocTextCursor = xDocText.createTextCursor();
xDocTextCursor.goRight((short)1, false);
xDocTextCursor.goRight((short)3, true);
XTextField xMetaField = inserter.makeMetaField();
xDocText.insertTextContent(xDocTextCursor, xMetaField, true);
XMetadatable xMetadatable = (XMetadatable)
UnoRuntime.queryInterface(XMetadatable.class, xMetaField);
xMetadatable.ensureMetadataReference();
xGraph.addStatement(xMetadatable, xOdfPrefix, xPrefix);
xGraph.addStatement(xMetadatable, xOdfSuffix, xSuffix);
assure("getPresentation(): wrong",
"fooabcbar".equals(xMetaField.getPresentation(false)));
inserter.insertRange( new Range(0, 0, text) );
}