try {
Object oGObject = (XInterface) xMSF.createInstance(
"com.sun.star.text.GraphicObject");
XText the_text = aDoc.getText();
XTextCursor the_cursor = the_text.createTextCursor();
XTextContent the_content = (XTextContent) UnoRuntime.queryInterface(
XTextContent.class, oGObject);
the_text.insertTextContent(the_cursor, the_content, true);
XPropertySet oProps = (XPropertySet) UnoRuntime.queryInterface(