...
Runnable Variables approach
First see Inter-Thread in IS advanced.
To represent the behavior of the application an tree structure of Runnables and their method invocations can be build.
In this tree structure, all trace and context information would be stored.
...