Replace custom ThreadLocal by java.lang.ThreadLocal<T>