printQuantityScheduleElement(schedule);
printQuantityScheduleElement(se);
  public void addDueInSchedule(Allocation allocation) {      if (allocation.getReportedResult() == null) {	  // if unconfirmed add to dueInSchedule	  Vector schedule=null;	  if(TaskUtils.isProjection(allocation.getTask())) {	      schedule = getScheduleFromProjectionTask(allocation.getTask(),true);	      if(schedule != null) {		  if (debug) {		      System.out.println("Adding projected due in schedule from allocation: " + 					 allocation.getUID());		      for(int i=0; i<schedule.size(); i++) 			  printQuantityScheduleElement((UIQuantityScheduleElement)schedule.elementAt(i));		  }		  projectedDueInSchedule.addAll(schedule);	      }	  }	  else {	      UIQuantityScheduleElement se = 		  getScheduleElementFromTask(allocation.getTask(), true);	      if(se != null) {		  if (debug) {		      System.out.println("Adding unconfirmed due in schedule from allocation: " + 					 allocation.getUID());		      printQuantityScheduleElement(se);		  }		  unconfirmedDueInSchedule.add(schedule);	      }	  }      } else if (allocation.getReportedResult().isSuccess()) {	  UIQuantityScheduleElement schedule = 	      getScheduleFromAllocation(allocation.getReportedResult(), true);	  if (schedule != null) {	      if (debug) {		  System.out.println("Adding due in schedule from allocation: " + 				     allocation.getUID());		  printQuantityScheduleElement(schedule);	      }	      dueInSchedule.add(schedule);	  }      }  }