if (!PluginHelper.checkChangeReports (planElements.getChangeReports(pe), PlanElement.ReportedResultChangeReport.class)) continue;
  protected void updateAllocationResult(IncrementalSubscription planElements) {    // Make sure that quantity preferences get returned on the allocation    // results. Transport thread may not have filled them in.    Enumeration changedPEs = planElements.getChangedList();    while (changedPEs.hasMoreElements()) {      PlanElement pe = (PlanElement)changedPEs.nextElement();            if (PluginHelper.updatePlanElement(pe)) {        boolean needToCorrectQuantity = false;                AllocationResult estimatedAR = pe.getEstimatedResult();        double prefValue =           pe.getTask().getPreference(AspectType.QUANTITY).getScoringFunction().getBest().getAspectValue().getValue();                AspectValue[] aspectValues = estimatedAR.getAspectValueResults();        	boolean foundQuantity = false;        for (int i = 0; i < aspectValues.length; i++) {          if (aspectValues[i].getAspectType() == AspectType.QUANTITY) {            if (aspectValues[i].getValue() != prefValue) {              // set the quantity to be the preference quantity              aspectValues[i].setValue(prefValue);               needToCorrectQuantity = true;            }	    foundQuantity = true;            break;          }        }	// BOZO - 	// Gordon Vidaver 08/16/02 - 	// someone should really fix this eventually	// some expansion is not setting the QUANTITY aspect on the aspect value, and Inventory Manager	// gets upset about this missing aspect in findCommittedRefill	if (!foundQuantity) {	  AspectValue [] copy = new AspectValue [aspectValues.length+1];	  System.arraycopy(aspectValues,0,copy,0,aspectValues.length);	  copy[aspectValues.length] = new AspectValue (AspectType.QUANTITY, prefValue);	  aspectValues=copy;	  if (getLoggingService().isDebugEnabled()) {            getLoggingService().debug("Packer.updateAllocationResult - fixing quantity on estimated AR of pe " + pe.getUID() + 				      " task " + pe.getTask().getUID());	  }	}        if (needToCorrectQuantity || !foundQuantity) {	  if (getLoggingService().isDebugEnabled()) {            getLoggingService().debug("Packer.updateAllocationResult - fixing quantity on estimated AR of pe " + pe.getUID());	  }           AllocationResult correctedAR =             new AllocationResult(estimatedAR.getConfidenceRating(),                                 estimatedAR.isSuccess(),                                 aspectValues);          pe.setEstimatedResult(correctedAR);                  }                        publishChange(pe);      }    }  }