logger.debug("Dossier template content written into a temp file.");
// initialize openoffice environment
ConfigSingleton config = ConfigSingleton.getInstance();
SourceBean officeConnectSB = (SourceBean) config.getAttribute("DOSSIER.OFFICECONNECTION");
logger.debug("Office connection Sourcebean retrieved: " + officeConnectSB.toXML());
String host = (String) officeConnectSB.getAttribute("host");
String port = (String) officeConnectSB.getAttribute("port");
logger.debug("Office connection host: " + host);
logger.debug("Office connection port: " + port);
XComponentContext xRemoteContext = Bootstrap.createInitialComponentContext(null);