} else if(td.getRemainingQty()>0.0){
} else if(td.getRemainingQty(currentBucket)>0.0){
  private TaskDeficit getTaskDeficit(Task task, int currentBucket, LogisticsInventoryPG thePG){    double qty = taskQtyInBucket(task, currentBucket, thePG);    TaskDeficit td = ((TaskDeficit)trailingPointersHash.get(task));    if (td==null) {      td = new TaskDeficit(task, qty, thePG);      if(task.getVerb().equals(Constants.Verb.PROJECTWITHDRAW)) {        trailingPointersHash.put(task, td);      }    } else if(td.getRemainingQty()>0.0){      // can only happen when we have a projectWithdraw task which has a previous bucket still      //  unfilled      td.incrementBacklog(qty);    } else {      // can only happen when we have a projectWithdraw task which has no previous bucket still      //  unfilled      td.setRemainingQty(qty);    }    return td;  }