Task supplyTask; Inventory inv = null; Asset proto; String id; int tasksExpanded = 0; while (tasks.hasMoreElements()) { supplyTask = (Task)tasks.nextElement(); proto = (Asset)supplyTask.getDirectObject();   inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto); if (inv != null) { tasksExpanded++;  expandSupplyTask(supplyTask); } else { id = proto.getTypeIdentificationPG().getTypeIdentification(); printDebug("handleExpandableTasks(), <"+supplyType_+">, could not allocate "+id); } }
Task supplyTask; Inventory inv = null; Asset proto; String id; int tasksExpanded = 0; while (tasks.hasMoreElements()) { supplyTask = (Task) tasks.nextElement(); proto = (Asset) supplyTask.getDirectObject();   inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto); if (inv != null) { tasksExpanded++;  expandSupplyTask(supplyTask); } else { id = proto.getTypeIdentificationPG().getTypeIdentification(); if (logger.isDebugEnabled()) { logger.debug("handleExpandableTasks(), <" + supplyType_ + ">, could not allocate " + id); } }
    protected void handleExpandableTasks(Enumeration tasks) {	Task supplyTask;	Inventory inv = null;	Asset proto;	String id;	int tasksExpanded = 0;	while (tasks.hasMoreElements()) {	    supplyTask = (Task)tasks.nextElement();	    proto = (Asset)supplyTask.getDirectObject();	    // If we cannot allocate the task to inventory then ignore it.	    // The external allocator will forward it onto a re-supply cluster.	    inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto);	    if (inv != null) {		tasksExpanded++;//  		printDebug("handleExpandableTasks(), <"+supplyType_+">, Expanding "+TaskUtils.taskDesc(supplyTask));		expandSupplyTask(supplyTask);	    }  	    else {		id = proto.getTypeIdentificationPG().getTypeIdentification(); 		printDebug("handleExpandableTasks(), <"+supplyType_+">, could not allocate "+id); 	    }	}//  	printDebug("handleExpandableTasks() <"+supplyType_+"> expanded "+//  		   tasksExpanded+" tasks.");    }