}
Object oStubFactory = xMSF.createInstance
("com.sun.star.ucb.CachedDynamicResultSetStubFactory") ;
XCachedDynamicResultSetStubFactory xStubFactory =
(XCachedDynamicResultSetStubFactory) UnoRuntime.queryInterface
(XCachedDynamicResultSetStubFactory.class, oStubFactory) ;
resSetStub =
xStubFactory.createCachedDynamicResultSetStub(dynResSet) ;
} catch (com.sun.star.uno.Exception e) {
log.println("Can't create relation." );
e.printStackTrace(log) ;
throw new StatusException( "Can't create relation", e );