Fixed NPE in SessionManagementImpl
Improved logging by adding an additional parameter that allows to switch on/off 3rd party lib logging