Avoid ThreadLocals to prevent classloader leaks in Tomcat (JAVA-343).
Merge pull request #195 from olim7t/java343

Avoid classloader leak in Tomcat (JAVA-343).