XInterface toolkit = null;
try {
log.println("creating a text document");
xTextDoc = SOF.createTextDoc(null);
toolkit = (XInterface) ((XMultiServiceFactory) tParam.getMSF()).createInstance(
"com.sun.star.awt.Toolkit");
} catch (com.sun.star.uno.Exception e) {
// Some exception occures.FAILED
e.printStackTrace(log);