Once I have came across a pattern, where ServletRequest and response objects are put to servlet\'s local ThreadLocal variables. The servlet class h
Purpose of ThreadLocal ?
when you have some object that is not thread-safe, but you want to avoid synchronizing access to that object ( SimpleDateFormat). Instead, give each thread its own instance of the object.
You need to be very careful about cleaning up any ThreadLocals you get() or set() by using the ThreadLocal's remove() method.