public class CallDemarcation {
/**
* Return the call context
*/
private static CallContextImpl getCallContext() {
CurrentImpl current = (CurrentImpl)Context.getInstance(org.systinet.wasp.webservice.ICurrent.class);
// get SSJ's current contexts
// get thread local state (InheritableThreadLocal)
CurrentImpl.ThreadLocals threadLocals = current.getThreadLocals();
// get or initialize call context
CallContextImpl callCtx = (CallContextImpl)threadLocals.callContext;
if (callCtx == null){
callCtx = new CallContextImpl(new HashMap(5), new HashMap(5));
threadLocals.callContext = callCtx;