I experienced some problems properly closing OpenOffice.org from the
OOoBean. Joachim Lingner told me there was an issue for this. As the
solution was quite simple to realize and test, I did it.
I just added a terminateOOo() method that terminate OOo if there is only
the bean on the desktop and stops the bean connection otherwise. The method
returns a boolean to indicate whether the office is terminated or not.
(Post originally written by Cedric Bosdonnat on the old Nuxeo blogs.)