ret = resourceResolverFactory.getServiceResourceResolver(authenticationProperties);
We don't share the service resource resolver between thread or listeners. Every call to the listener or every thread calls the code snippet from above to get his own SRR and is closing the SRR when work is done.
Is this possible without running into problems when a thread or a event will be fired in parallel?
Or should we use different identifiers for event listener A, event listener B, background thread A, ...