} catch ( com.sun.star.lang.IllegalArgumentException e ) {
e.printStackTrace(log);
log.println("Exception occured: " + e);
}
XLineNumberingProperties oLNP = (XLineNumberingProperties)
UnoRuntime.queryInterface(XLineNumberingProperties.class,xTextDoc);
XPropertySet lineNumProps = oLNP.getLineNumberingProperties();
dbg.printPropertiesNames(lineNumProps);
TestEnvironment tEnv = new TestEnvironment(lineNumProps);
return tEnv;
} // finish method getTestEnvironment