try {
LocalOfficeConnection localOfficeConnection = new LocalOfficeConnection();
localOfficeConnection.setOfficePath(home);
localOfficeConnection.setHost("localhost");
localOfficeConnection.setUseBridge(true);
localOfficeConnection.openConnection(officeProgressMonitor);
setOfficeConnection(localOfficeConnection);
}
catch(Throwable throwable) {
OfficeApplicationException officeApplicationException = new OfficeApplicationException(throwable.getMessage());
officeApplicationException.initCause(throwable);