} catch ( com.sun.star.uno.Exception e ){
log.println("Couldn't create instance!" + e);
e.printStackTrace( log );
throw new StatusException( "Couldn't create instance!", e );
}
XPrintSettingsSupplier xPSS = (XPrintSettingsSupplier)
UnoRuntime.queryInterface(XPrintSettingsSupplier.class, oInst);
oObj = xPSS.getPrintSettings();
TestEnvironment tEnv = new TestEnvironment(oObj);
return tEnv;
} // finish method getTestEnvironment