Why do you need to make it thread safe? The container should take care of all threading issues and it is not apparent you are starting any threads in this snippet of code.