Java NuxeoClient resource
I've written a few short example apps tailored to my needs using Java client 3.6. Now it's time to integrate all of this in the real application. If I want to deliver Nuxeo security, I have to access Nuxeo as the logged in user. So my best guess so far is that I have to create a short-lived NuxeoClient instance with the user credentials, perform simple operations like uploading a file into Nuxeo Server and then basically I'm done with the NuxeoClient instance since I can't reuse it for the next operations performed by another user. Is there a clean way to dispose of the NuxeoClient instance when I'm done using it? There is no close() method but should I use disconnect() for instance?
Thanks in advance for your help.