LPS-49545

Hi @marcellustavares 

I've modified the code as we discussed over skype. It seems to me it's fine though I've observed some exception in the logs, but as without my change there are also ldap based exceptions with my portal-ext.properties, perhaps I just missed something in the setup (I tried to catch those to see whether they are connected to my change, but I had no luck with it).

Anyway if you find something suspicious, please let me know.

Regards,
Vilmos