return inventory;
if (resource == null) { GLMDebug.ERROR("InventoryPlugIn","<"+supplytype+"> createInventory fail to make prototype for "+id); return null; } return findOrMakeInventory(supplytype, resource);
    public synchronized Inventory findOrMakeInventory(String supplytype, Asset resource) {	Inventory inventory = null;	// only need to sync if each processor is running on its own thread.	// currently, ANTS is single-threaded but could easily be made multi-threaded.	String id = resource.getTypeIdentificationPG().getTypeIdentification();	inventory = (Inventory)inventoryHash_.get(id);	if (inventory == null) {	    inventory = createInventory(supplytype, resource);	    if (inventory != null) {		inventoryHash_.put(id, inventory);		getDelegate().publishAdd(inventory);		GLMDebug.DEBUG("InventoryPlugIn", "findOrMakeInventory(), CREATED inventory bin for: "+				  AssetUtils.assetDesc(inventory.getScheduledContentPG().getAsset()));		findOrMakeMILTask(inventory);	    }	}	return inventory;    }