Utilities that can be applied to several situations.
Listener to make sure servlet thread and ZK event thread got the same ThreadLocal values.