// dispose our callback factory. This will automatically remove it from our service
// factory
m_callbackFactory.dispose();
// revoke ourself as listener at the global event broadcaster
final XDocumentEventBroadcaster broadcaster = (XDocumentEventBroadcaster) UnoRuntime.queryInterface(
XDocumentEventBroadcaster.class, getORB().createInstance("com.sun.star.frame.GlobalEventBroadcaster"));
broadcaster.removeDocumentEventListener(this);
}
catch (Exception e)
{
log.println("could not create the test case, error message:\n" + e.getMessage());
e.printStackTrace(System.err);