prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventory));
Asset resource = inventory.getInventoryPG().getResource(); StringBuffer inventoryID = new StringBuffer().append("Inventory:").append(resource.getTypeIdentificationPG().getTypeIdentification()); prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventoryID.toString()));
    protected Task newProjectSupplyTask(Inventory inventory, long start, long end, Rate rate) {	Task parentTask = inventoryPlugIn_.findOrMakeMILTask(inventory);	// Create start and end time preferences (strictly at)	ScoringFunction score;	Vector prefs = new Vector();	score = ScoringFunction.createStrictlyAtValue(new TimeAspectValue(AspectType.START_TIME, start));	prefs.addElement(ldmFactory_.newPreference(AspectType.START_TIME, score));	score = ScoringFunction.createStrictlyAtValue(new TimeAspectValue(AspectType.END_TIME, end));	prefs.addElement(ldmFactory_.newPreference(AspectType.END_TIME, score));	Vector prep_phrases = new Vector();	prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.FOR, myOrgName_));	prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.OFTYPE, supplyType_));	prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.MAINTAINING, inventory));	prep_phrases.add(newPrepositionalPhrase(Constants.Preposition.REFILL));	InventoryPG invpg = (InventoryPG)inventory.getInventoryPG();	NewTask t =  (NewTask)buildTask(parentTask, 					Constants.Verb.PROJECTSUPPLY, 					invpg.getResource(),					prep_phrases,					prefs.elements());        t.setPreference(TaskUtils.createDemandRatePreference(ldmFactory_, rate));        t.setPreference(TaskUtils.createDemandMultiplierPreference(ldmFactory_, 1.0)); 	t.setCommitmentDate(new Date(end));//  	printDebug("newProjectSupplyTask(), created new ProjectSupply task "+TaskUtils.taskDesc(t));  	return t;    }