batchContext doesn't do anything with a ThreadLocal.  It closes the applicationContext.