Avoid using "currentContext" and "currentChild" contexts: having several processes chain contexts in parallel may return inconsistent results to the application. Make sure that you do confuse this with the current context for a client/server session identifier, which actually returns the corresponding instance of the context related to that session.
For examples of how you can work with contexts, see the following sections.