Adjusting ThreadLocal and serializable classes to work with storm.