public boolean isSystemInitiatedRun() {
    return !initiator.getType().isRestartable();
  }
@Test
  public void testIsSystemInitiatedRun() {
    RunRequest runRequest =
        RunRequest.builder()
            .currentPolicy(RunPolicy.START_FRESH_NEW_RUN)
            .requester(User.create("tester"))
            .build();
    Assert.assertFalse(runRequest.isSystemInitiatedRun());

    runRequest =
        RunRequest.builder()
            .initiator(UpstreamInitiator.withType(Initiator.Type.FOREACH))
            .currentPolicy(RunPolicy.START_FRESH_NEW_RUN)
            .build();
    Assert.assertTrue(runRequest.isSystemInitiatedRun());
  }