XComponentLoader xComponentLoader = (XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class, object);
XComponent xComponent = xComponentLoader.loadComponentFromURL(m_database.getDocumentURL(), "_blank",FrameSearchFlag.ALL, new PropertyValue[0]);
m_database.close();
XStorable storable = (XStorable)UnoRuntime.queryInterface(XStorable.class,xComponent);
storable.store();
XCloseable close = (XCloseable)UnoRuntime.queryInterface(XCloseable.class,xComponent);
close.close(true);
}
catch ( AssureException e ) { throw e; }
catch ( Exception e )
{
assure( "caught an unexpected exception: " + e.getMessage(), false );