} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log);
throw new StatusException("Couldn't create document ", e);
}
XModel model1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xSpreadsheetDoc);
XModel model2 = (XModel) UnoRuntime.queryInterface(XModel.class,
xSecondsheetDoc);
XInterface oObj = model1;
TestEnvironment tEnv = new TestEnvironment(oObj);
XController cont1 = model1.getCurrentController();
XController cont2 = model2.getCurrentController();
cont1.getFrame().setName("cont1");
cont2.getFrame().setName("cont2");
XSelectionSupplier sel = (XSelectionSupplier) UnoRuntime.queryInterface(
XSelectionSupplier.class, cont1);