Document docToSend = xmlProcessor.prepareRescind(removedTasks);
Vector knownTasks = new Vector(); for (;removedTasks.hasMoreElements();) { Task task = (Task) removedTasks.nextElement();  if (sched.getSchedulingData().getTask(task.getUID().toString()) != null) knownTasks.add (task); }  Document docToSend = xmlProcessor.prepareRescind(knownTasks.elements());
  public void handleRemovedTasks(Enumeration removedTasks) {    if (incrementalScheduling) {      Document docToSend = xmlProcessor.prepareRescind(removedTasks);      comm.serializeAndPostData (docToSend);      if (logger.isDebugEnabled())	logger.debug ("InternalMode.handleRemovedTasks - telling scheduler " + sched + " to remove tasks");      sched.setupInternal (comm.getBuffer(), false);      comm.clearBuffer ();    }  }