if (logger.isErrorEnabled()) {
if (logger.isDebugEnabled()) {
    public void removeRefillRequisition(Task task) {      if (task.isDeleted()) {        int end_bucket = convertTimeToBucket(getEndTime(task), false);        if (logger.isErrorEnabled()) {          logger.debug("Removing task "+taskUtils.taskDesc(task));        }        setDeletionBucket(end_bucket);      }      for (int i = 0; i < refillRequisitions.size(); i++) {        ArrayList refills = (ArrayList) refillRequisitions.get(i);        if(refills != null) {          if(refills.remove(task)){            if(refills.size() < 1) {              refillRequisitions.set(i, null);            }          }        }      }    }