SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory)Param.getMSF());
try {
log.println( "creating a draw document" );
xImpressDoc = SOF.createImpressDoc(null);;
} catch (com.sun.star.uno.Exception e) {
// Some exception occures.FAILED
e.printStackTrace( log );
throw new StatusException( "Couldn't create document", e );
}