XTextField insertMetaField(XTextCursor xCursor, StringPair xmlid)
throws Exception
{
XTextField xContent = makeMetaField();
xContent.attach(xCursor);
XMetadatable xMetadatable = (XMetadatable)
UnoRuntime.queryInterface(XMetadatable.class, xContent);
xMetadatable.setMetadataReference(xmlid);
return xContent;
}