XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XFrame the_frame1 = the_Desk.getCurrentFrame();
if (the_frame1 == null) {
log.println("Current frame was not found !!!");
}
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
XDispatchProvider.class, the_frame1);
XDispatch getting = null;
log.println("opening DatasourceBrowser");
URL the_url = new URL();
the_url.Complete = ".component:DB/DataSourceBrowser";
getting = aProv.queryDispatch(the_url, "_beamer", 12);
PropertyValue[] noArgs = new PropertyValue[0];
getting.dispatch(the_url, noArgs);
XFrame the_frame2 = the_frame1.findFrame("_beamer", 4);
the_frame2.setName("DatasourceBrowser");
XInterface oObj = the_frame2.getController();
Object[] params = new Object[3];
PropertyValue param1 = new PropertyValue();
param1.Name = "DataSourceName";
param1.Value = "Bibliography";