XMLBEANS-502: Allow to manually clear ThreadLocals via a new ThreadLocalUtil.clearAllThreadLocals() This allows to avoid memory leaks or log warnings in applications that make heavy use of thread-pools or web-containers, e.g. Tomcat