SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory)Param.getMSF());
try {
log.println( "creating two impress documents" );
xImpressDoc = SOF.createImpressDoc(null);
xSecondDrawDoc = SOF.createImpressDoc(null);
shortWait();
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace( log );
throw new StatusException("Couldn't create document", e);