logger.error ("Could not find file demandSchedPolicy.xml");
if (logger.isErrorEnabled()) { logger.error("Could not find file demandSchedPolicy.xml"); }
  private void setupTaskScheduler() {    String taskScheduler = (String) pluginParams.get(TASK_SCHEDULER_OFF);    if (taskScheduler != null) {      turnOffTaskSched = new Boolean(taskScheduler).booleanValue();    }    else {      turnOffTaskSched = false;    }    QuiescenceReportService qrs = (QuiescenceReportService)      getServiceBroker().getService(this, QuiescenceReportService.class, null);//     AgentIdentificationService ais = (AgentIdentificationService)//       getServiceBroker().getService(this, AgentIdentificationService.class, null);    qrs.setAgentIdentificationService(ais);    QuiescenceAccumulator q = new QuiescenceAccumulator (qrs);    String myId = getBlackboardClientName()+ais.getMessageAddress().toString()+supplyType+"DemandForecastPlugin";//     if (myId.endsWith("SubsistenceDemandForecastPlugin")) {//       logger.error ("DemandForecastPlugin created an id for TaskScheduler of :" +myId);//     }    if (!turnOffTaskSched) {      if (logger.isDebugEnabled())        logger.debug("DemandForecastor TASK SCHEDULER ON "+ ais.getMessageAddress().toString() + getSupplyType());      java.io.InputStream is = null;      try {        is = getConfigFinder().open ("demandSchedPolicy.xml");      } catch (Exception e) {        logger.error ("Could not find file demandSchedPolicy.xml");      }      genProjTaskScheduler = new TaskScheduler        (new GenProjPredicate (supplyType, taskUtils),         TaskSchedulingPolicy.fromXML (is, this, getAlarmService()),         blackboard, q, logger,"GenProjs for " + getBlackboardClientName()+ais.getMessageAddress().toString()+supplyType+"DemandForecastPlugin");    } else {      if (logger.isDebugEnabled())        logger.debug("DemandForecastor TASK SCHEDULER OFF "+ ais.getMessageAddress().toString() + getSupplyType());     genProjTaskScheduler = new TaskScheduler      (new GenProjPredicate (supplyType, taskUtils),       new TaskSchedulingPolicy (new TaskSchedulingPolicy.Predicate[]                                     {TaskSchedulingPolicy.PASSALL}),       blackboard, q, logger,"GenProjs for " + getBlackboardClientName()+ais.getMessageAddress().toString()+supplyType+"DemandForecastPlugin");    }  }