Continuation c = (Continuation) req.getAttribute(Continuation.class.getName());
if (c == null || c.isInitial()) {
action = suspended(req, res);
if (action.type() == Action.TYPE.SUSPEND && req.getAttribute(FrameworkConfig.CANCEL_SUSPEND_OPERATION) == null) {
c = getContinuation(req);
req.setAttribute(Continuation.class.getName(), c);
if (action.timeout() != -1) {
c.setTimeout(action.timeout());