public static void startupScheduler(Scheduler scheduler) throws SchedulerException {

		scheduler.pauseAll();
		scheduler.start();
		String[] triggerGroups = scheduler.getTriggerGroupNames();

		for (int i = 0; i < triggerGroups.length; i++) {
			String[] triggersInGroup = scheduler.getTriggerNames(triggerGroups[i]);
			for (int j = 0; j < triggersInGroup.length; j++) {
				Trigger t = scheduler.getTrigger(triggersInGroup[j], triggerGroups[i]);
				if (t.getDescription() == null || !t.getDescription().endsWith(PAUSED_FLAG)) {
					scheduler.resumeTrigger(triggersInGroup[j], triggerGroups[i]);
				}
			}
		}
	}