ComplexJobTrigger complexJobTrigger = createComplexTrigger( cronTrigger.getCronExpression() );
complexJobTrigger.setUiPassParam( (String) job.getJobParams().get( RESERVEDMAPKEY_UIPASSPARAM ) );
complexJobTrigger.setCronString( ( (CronTrigger) trigger ).getCronExpression() );
job.setJobTrigger( complexJobTrigger );
if ( trigger.getCalendarName() != null ) {
Calendar calendar = scheduler.getCalendar( trigger.getCalendarName() );
if ( calendar instanceof QuartzSchedulerAvailability ) {
QuartzSchedulerAvailability quartzSchedulerAvailability = (QuartzSchedulerAvailability) calendar;
complexJobTrigger.setStartTime( quartzSchedulerAvailability.getStartTime() );
complexJobTrigger.setEndTime( quartzSchedulerAvailability.getEndTime() );
}