XContentProvider cntProv = (XContentProvider)
UnoRuntime.queryInterface(XContentProvider.class, oUCB) ;
XContent cnt = cntProv.queryContent(CI) ;
XCommandProcessor cmdProc = (XCommandProcessor)
UnoRuntime.queryInterface(XCommandProcessor.class, cnt) ;
Property prop = new Property() ;
prop.Name = "Title" ;
Command cmd = new Command("open", -1, new OpenCommandArgument2
(OpenMode.ALL, 10000, null, new Property[] {prop},
new NumberedSortingInfo[0])) ;
XDynamicResultSet dynResSet = null;
try {
dynResSet = (XDynamicResultSet)
AnyConverter.toObject(new Type(XDynamicResultSet.class),
cmdProc.execute(cmd, 0, null));
} catch (com.sun.star.lang.IllegalArgumentException iae) {
throw new StatusException("Couldn't convert Any ",iae);
}
Object oStubFactory = xMSF.createInstance