} catch ( org.quartz.SchedulerException e ) {
throw new SchedulerException( Messages.getInstance().getString(
"QuartzScheduler.ERROR_0001_FAILED_TO_SCHEDULE_JOB", jobName ), e ); //$NON-NLS-1$
}
Job job = new Job();
job.setJobParams( jobParams );
job.setJobTrigger( (JobTrigger) trigger );
job.setNextRun( quartzTrigger.getNextFireTime() );
job.setLastRun( quartzTrigger.getPreviousFireTime() );
job.setJobId( jobId.toString() );
job.setJobName( jobName );
job.setUserName( curUser );
job.setState( JobState.NORMAL );
return job;
}