// creation of testobject here
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
log.println( "get presentation" );
XPresentationSupplier oPS = (XPresentationSupplier)
UnoRuntime.queryInterface(XPresentationSupplier.class, xImpressDoc);
XInterface oObj = oPS.getPresentation();
log.println( "get custom presentation" );
XCustomPresentationSupplier oCPS = (XCustomPresentationSupplier)
UnoRuntime.queryInterface(
XCustomPresentationSupplier.class, xImpressDoc);