Any arg = new Any(new Type(XDocumentHandler.class),Filter);
try {
oObj = (XInterface) xMSF.createInstanceWithArguments(
"com.sun.star.comp.Writer.XMLExporter", new Object[] {arg});
XExporter xEx = (XExporter) UnoRuntime.queryInterface
(XExporter.class,oObj);
xEx.setSourceDocument(xTextDoc);
XSimpleText aText = xTextDoc.getText();
XTextCursor curs = (XTextCursor) aText.createTextCursor();
aText.insertString(curs, TEST_STR, false);
} catch (com.sun.star.uno.Exception e) {