// first we write what we are intend to do to log file
log.println( "creating a test environment" );
// get the drawpage of drawing here
log.println( "getting LayerManager" );
XLayerSupplier oLS = (XLayerSupplier)
UnoRuntime.queryInterface(XLayerSupplier.class, xDrawDoc);
XNameAccess oNA = oLS.getLayerManager();
oLM = (XLayerManager)
UnoRuntime.queryInterface(XLayerManager.class, oNA);
XIndexAccess oIA = (XIndexAccess)
UnoRuntime.queryInterface(XIndexAccess.class,oLM);
log.println( "getting LayerManager" );