Continuation c = new Continuation(context);
assertTrue(!c.isRestoring());
assertTrue(!c.isCapturing());
System.out.println("*** start flow");
c.registerThread();
method.invoke(flow, new Object[0]);
if (c.isCapturing())
c.getStack().popReference();
c.deregisterThread();
System.out.println("*** return from flow");