[Java] - various fixes/workarounds for exist´s persistent login module.