printDebug("allocateWithdrawTasks()  allocated "+num_tasks+ " tasks to Inventory objects"); }
if (logger.isDebugEnabled()) { logger.debug("allocateWithdrawTasks()  allocated " + num_tasks + " tasks to Inventory objects"); } }
    protected void allocateWithdrawTasks(Enumeration tasks) {	Task wdrawTask;	Inventory inventory;	Asset proto;	AllocationResult ar;	int num_tasks=0;	while (tasks.hasMoreElements()) {	    wdrawTask = (Task)tasks.nextElement();	    proto = (Asset)wdrawTask.getDirectObject();	    inventory = inventoryPlugin_.findOrMakeInventory(supplyType_, proto);	    // A withdraw task is not created unless findOrMakeInventory returns an	    // inventory object, so this should never happen.	    if (inventory == null)  {		String typeID = proto.getTypeIdentificationPG().getTypeIdentification();		GLMDebug.ERROR("WithdrawAllocator", clusterId_, "Inventory NOT found for "+typeID);		continue;	    }            boolean isNew = wdrawTask.getPlanElement() == null;            if (isPrintConcise()) {                printConcise("allocateWithdrawTasks() "                             + (isNew ? "new " : "change ")                             + wdrawTask.getUID()                             + " "                             + TaskUtils.getDailyQuantity(wdrawTask)                             + (TaskUtils.isProjection(wdrawTask)                                ? (" from "                                   + TimeUtils.dateString(TaskUtils.getStartTime(wdrawTask))                                   + " to "                                   + TimeUtils.dateString(TaskUtils.getEndTime(wdrawTask)))                                : (" on "                                   + TimeUtils.dateString(TaskUtils.getEndTime(wdrawTask)))));            }            if (isNew) {                ar = new AllocationResultHelper(wdrawTask, null).getAllocationResult(1.0);                if (publishAllocation(wdrawTask, inventory, role_, ar)) {// 		    GLMDebug.DEBUG("WithdrawAllocator", clusterId_, // 				      "Allocating "+TaskUtils.taskDesc(wdrawTask)+" to inventory, with PlanElement:"+// 				      wdrawTask.getPlanElement().getUID()+ ", DESCRIPTION: "+inventoryDesc(inventory));		    num_tasks++;		}	    }            delegate_.publishChange(inventory);	}	if (num_tasks > 0) {	    printDebug("allocateWithdrawTasks()  allocated "+num_tasks+		       " tasks to Inventory objects");	}    }