Scriptable oldScope = null;
FOM_Cocoon cocoon = null;
if (wk.getContinuation() instanceof Continuation) {
oldScope = FOM_JavaScriptFlowHelper.getFOM_FlowScope(objectModel);
Continuation k = (Continuation) wk.getContinuation();
Scriptable kScope = k.getParentScope();
// Register the current scope for scripts indirectly called from this function
FOM_JavaScriptFlowHelper.setFOM_FlowScope(objectModel, kScope);
cocoon = (FOM_Cocoon) kScope.get("cocoon", kScope);
cocoon.pushCallContext(null, null, this.context, wk);
}