xFrameProps.setPropertyValue("AnchorType", TextContentAnchorType.AS_CHARACTER);
/* Then embed at the cursor */
// XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, oComponent);
// controller = xModel.getCurrentController();
controller = xFrame.getController();
XTextViewCursorSupplier xViewCursorSupplier = (XTextViewCursorSupplier) UnoRuntime.queryInterface(
XTextViewCursorSupplier.class, controller);
XTextViewCursor xViewCursor = xViewCursorSupplier.getViewCursor();
//XTextRange xRange = (XTextRange)
// UnoRuntime.queryInterface(XTextRange.class, xViewCursor);
XTextRange xRange = xViewCursor.getStart();
// ((XTextDocument)UnoRuntime.queryInterface(XTextDocument.class,