}
  protected int getMode (Task parentTask) {    long bestTime = prefHelper.getBestDate(parentTask).getTime();    long currentTime = getAlarmService().currentTimeMillis();    long level6Day = ((Integer)level6Horizon.getValue()).longValue();    long level2Day = ((Integer)level2Horizon.getValue()).longValue();    if (bestTime < currentTime + level6Day*MILLIS_PER_DAY)      return LEVEL_6_MODE;    else if (bestTime < currentTime + level2Day*MILLIS_PER_DAY)      return LEVEL_2_MODE;    // DONT_PROCESS_MODE is not currently supported    //    return DONT_PROCESS_MODE;    return LEVEL_2_MODE;  }