} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log);
throw new StatusException("Couldn't fill some cell", e);
}
XScenariosSupplier xSupp = (XScenariosSupplier)
UnoRuntime.queryInterface(XScenariosSupplier.class, oSheet);
XCellRange oRange = (XCellRange)
UnoRuntime.queryInterface(XCellRange.class, oSheet);
XCellRange myRange = oRange.getCellRangeByName("A1:N4");
XCellRangeAddressable oRangeAddr = (XCellRangeAddressable)
UnoRuntime.queryInterface(XCellRangeAddressable.class, myRange);
CellRangeAddress myAddr = oRangeAddr.getRangeAddress();
CellRangeAddress[] oAddr = new CellRangeAddress[1];
oAddr[0] = myAddr;
xSupp.getScenarios().addNewByName("ScScenarios", oAddr, "Range");
XInterface oObj = xSupp.getScenarios();
TestEnvironment tEnv = new TestEnvironment(oObj);
log.println("adding ObjectRelation for XScenarios");
tEnv.addObjRelation("ADDR", oAddr);