added TreadLocal for Subject handling