docUI = (XDatabaseDocumentUI)UnoRuntime.queryInterface( XDatabaseDocumentUI.class,
doc.getCurrentController() );
docUI.connect();
// display the table, again
tableViewComp = docUI.loadComponent( com.sun.star.sdb.application.DatabaseObject.TABLE, "customers", false );
tableViewController = (XFormController)UnoRuntime.queryInterface( XFormController.class,
tableViewComp );
tableControlModel = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class,
tableViewController.getCurrentControl().getModel() );