XExporter xEx = (XExporter)
UnoRuntime.queryInterface(XExporter.class,oObj);
xEx.setSourceDocument(xImpressDoc);
// assigning a draw page a new name
XDrawPagesSupplier xPagesSup = (XDrawPagesSupplier)
UnoRuntime.queryInterface
(XDrawPagesSupplier.class, xImpressDoc) ;
XDrawPages xPages = xPagesSup.getDrawPages() ;
XNamed xPageName = (XNamed) UnoRuntime.queryInterface
(XNamed.class, xPages.getByIndex(0)) ;
xPageName.setName(expPageName) ;
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ;