if (bucket >= projectedDemandArray.length) { projectedDemandArray = expandArray(projectedDemandArray); }
  private void updateProjectedDemandList(Task task, int bucket, long start, long end, boolean add) {    double demand = getProjectionTaskDemand(task, bucket, start, end);    if (add){      projectedDemandArray[bucket] += demand;    } else {      projectedDemandArray[bucket] -= demand;    }//      logger.error("Bucket "+bucket+": new demand "+demand+", total is "+//  		 projectedDemandArray[bucket]);  }