XDesktop xDescTop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, descTop);
XComponent xComponent = xDescTop.getCurrentComponent();
Object moduleManager =
xMultiComponentFactory.createInstanceWithContext("com.sun.star.frame.ModuleManager", xComponentContext);
XModuleManager xMM = (XModuleManager) UnoRuntime.queryInterface(XModuleManager.class, moduleManager);
currentModelName = xMM.identify(xComponent);
xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, xComponent);
XDocumentInfoSupplier xDocumentInfoSupplier =
(XDocumentInfoSupplier) UnoRuntime.queryInterface(XDocumentInfoSupplier.class, xComponent);