My program runs several threads. Each thread creates its own StateContext. The model is something like this ^^. Every state keeps some data with an unique ID. When the program s