logger.debug("TASK SCHEDULER OFF - TASK SCHEDULER OFF - TASK SCHEDULER OFF - TASK SCHEDULER OFF");
  private void setupTaskScheduler() {    String taskScheduler = (String) pluginParams.get(TASK_SCHEDULER_OFF);    boolean turnOffTaskSched = new Boolean(taskScheduler).booleanValue();    long now = getAlarmService().currentTimeMillis();    long date1 = timeUtils.addNDays (now, 7);    long date2 = timeUtils.addNDays (now, 21);    long date3 = timeUtils.addNDays (now, 60);//     long date4 = timeUtils.addNDays (now, 180);    long date4 = timeUtils.addNDays (now, 205);    TimeSpan ts1 = TaskSchedulingPolicy.makeTimeSpan (now, date1);    TimeSpan ts2 = TaskSchedulingPolicy.makeTimeSpan (date1, date2);    TimeSpan ts3 = TaskSchedulingPolicy.makeTimeSpan (date2, date3);    TimeSpan ts4 = TaskSchedulingPolicy.makeTimeSpan (date3, date4);    if (!turnOffTaskSched) {      genProjTaskScheduler = new TaskScheduler        (new GenProjPredicate (supplyType, taskUtils),         new TaskSchedulingPolicy (         new TaskSchedulingPolicy.Predicate[] {           new TaskSchedulingPolicy.Predicate() {             public boolean execute (Task task) {               return taskUtils.isLevel2 (task); }},           new TaskSchedulingPolicy.Predicate() {             public boolean execute (Task task) {               return ! taskUtils.isLevel2 (task); }}},         new TaskSchedulingPolicy.PriorityPhaseMix[] {           new TaskSchedulingPolicy.PriorityPhaseMix (1, ts1),           new TaskSchedulingPolicy.PriorityPhaseMix (0, ts2),           new TaskSchedulingPolicy.PriorityPhaseMix (0, ts3),           new TaskSchedulingPolicy.PriorityPhaseMix (1, ts2),           new TaskSchedulingPolicy.PriorityPhaseMix (0, ts4),           new TaskSchedulingPolicy.PriorityPhaseMix (1, ts3),           new TaskSchedulingPolicy.PriorityPhaseMix (1, ts4)}),       blackboard, logger,"GenProjs for " + getBlackboardClientName());    } else {     genProjTaskScheduler = new TaskScheduler      (new GenProjPredicate (supplyType, taskUtils),       new TaskSchedulingPolicy (         new TaskSchedulingPolicy.Predicate[] {           new TaskSchedulingPolicy.Predicate() {             public boolean execute (Task task) {               return true; }}}           ),       blackboard, logger,"GenProjs for " + getBlackboardClientName());    }  }