code: private Periodic newPeriodic() {
          Periodic periodic = new Periodic();
          periodic.db = this.db;
          periodic.log = this.log;
          periodic.terminationGuard = this.terminationGuard;
          return periodic;
      }
docs: /*
  create a properly initialized Periodic instance by setting all the required @Context attributes