defaultEditingContext().setSharedEditingContext(null); if (_observer != null) NSNotificationCenter.defaultCenter().removeObserver(_observer); if (_browser != null) ERXBrowserFactory.factory().releaseBrowser(_browser);
    public void terminate() {        // WOFIX: 5.1.2        // work around a bug in WO 5.1.2 where the sessions EC will keep a lock on the SEC        defaultEditingContext().setSharedEditingContext(null);        if (_observer != null)             NSNotificationCenter.defaultCenter().removeObserver(_observer);        if (_browser != null)             ERXBrowserFactory.factory().releaseBrowser(_browser);        super.terminate();    }