FOM_WebContinuation parent,
int timeToLive)
throws Exception {
if (k == null) return null;
WebContinuation wk;
ContinuationsManager contMgr;
contMgr = (ContinuationsManager)
componentManager.lookup(ContinuationsManager.ROLE);
wk = contMgr.createWebContinuation(unwrap(k),
(WebContinuation)(parent == null ? null : parent.getWebContinuation()),
timeToLive);
FOM_WebContinuation result = new FOM_WebContinuation(wk);
result.setParentScope(getParentScope());
result.setPrototype(getClassPrototype(getParentScope(),