*/
private Trigger createTrigger(String jobName, String groupName, ScheduleTimes times) throws Exception
{
if (times instanceof ScheduleOn)
{
ScheduleOn on = (ScheduleOn) times;
return new CronTrigger(jobName, groupName, jobName, groupName, on.createCronExpression());
}
else if (times instanceof ScheduleRepeated)
{
ScheduleRepeated repeated = (ScheduleRepeated) times;