Thank you very much, dvatov, this is exactly what I'm looking for!
So in createPluginFactory(...), I can create a factory for every user and each factory instance will be in charge of populating the inventory tree for the specific user?
This is awesome, thanks again:)