// Add the new job to the scheduler, instructing it to "replace" // the existing job with the given name and group (if any) scheduler.addJob((new JobDetail("job1", "group1", NewJobClass.class), true);