public void run() {
if (isValid()) {
TestLocalScheduleJob job = new TestLocalScheduleJob(schedule);
job.setNumberOfRuns(NumberOfSimulatedRunsPreference.get());
job.setResultReceiver(new ResultDisplayer(schedule, page));
WaitService waitService = (page != null ? page.getWaitService() : appWin);
job.submit(waitService, 0);
} else {
Alert.error("The Schedule is invalid.", "Invalid Schedule");
}
}