threadLocalSession has been removed