if(replan){  printDebug(">>>>>>>^^^^^^<<<<<<<<<<Replanning with failed withdrawal AR"); AllocationResult newAr = wf.aggregateAllocationResults(); if (newAr != null) {  ((PEforCollections) exp).setReceivedResult(newAr); }  }
    protected void handleExpansionChanges(Enumeration expansions) {        AllocationResult ar;        while (expansions.hasMoreElements()) {            Expansion exp = (Expansion) expansions.nextElement();            ar = exp.getReportedResult();            if (ar != null && !ar.isSuccess()) {                NewWorkflow wf = (NewWorkflow) exp.getWorkflow();                for (Enumeration tasks = wf.getTasks(); tasks.hasMoreElements(); ) {                    Task subtask = (Task) tasks.nextElement();                    PlanElement pe = subtask.getPlanElement();                    if (pe != null) { // Null if being rescinded by customer                        ar = pe.getEstimatedResult();                        if (!ar.isSuccess()) continue;                    }                    wf.removeTask(subtask);                    delegate_.publishRemove(subtask);                }            }        }    }