alloc = (Allocation)task.getPlanElement(); publishRemove(alloc);
if (!(task.beforeCommitment(new Date(currentTimeMillis())))) { if (logger.isWarnEnabled()) { logger.warn("rescind unprovided Task Allocations: will not rescind allocation ... after commitment"+ task.getCommitmentDate()+ " task:"+task); } } else {  alloc = (Allocation)task.getPlanElement(); publishRemove(alloc); }
  private void rescindTaskAllocations(Collection tasks) {    Task task;    Allocation alloc;    Iterator taskIt = tasks.iterator();    while (taskIt.hasNext()) {      task = (Task) taskIt.next();      //	  System.out.println("SDSD rescind: " + task + "\n");      alloc = (Allocation)task.getPlanElement();      publishRemove(alloc);    }  }