// create a new instance of the the desktop
Object oDesktop = xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", getConnection ().getComponentContext ());
XDesktop desktop = (XDesktop)(UnoRuntime.queryInterface(com.sun.star.frame.XDesktop.class, oDesktop));
XEnumerationAccess components = desktop.getComponents ();
for (XEnumeration xEnum = components.createEnumeration () ; xEnum.hasMoreElements() ; ) {
XComponent comp = (XComponent)((Any)(xEnum.nextElement ())).getObject ();
XModel model = (XModel)(UnoRuntime.queryInterface(XModel.class, comp));
if (model != null) {
if (uri.equals (model.getURL())) {
myLog.debug ("match {}", model.getURL());