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