code: public BThreadSyncSnapshot copyWith(Object aContinuation, SyncStatement aStatement) {
          BThreadSyncSnapshot retVal = new BThreadSyncSnapshot(name, entryPoint);
          retVal.continuation = aContinuation;
          retVal.setInterruptHandler(interruptHandler);
          retVal.syncStatement = aStatement;
          aStatement.setBthread(retVal);
  
          return retVal;
      }
docs: Creates the next snapshot of the BThread in a given run.
  
  @param aContinuation The BThread's continuation for the next sync.
  @param aStatement The BThread's statement for the next sync.
  @return a copy of {@code this} with updated continuation and statement.