Of course it's not "thread-safe".  How is another thread going to gain access to the local vars in this method?