newPreference(AspectType.END_TIME, endTimeSF);
newPreference(aspectType, timeSF);
  private Preference createRefillTimePreference(long bestDay, long start) {    AspectValue beforeAV = new TimeAspectValue(AspectType.END_TIME, start);    AspectValue bestAV = new TimeAspectValue(AspectType.END_TIME, bestDay);    //TODO - really need end of deployment from an OrgActivity -    // As a hack for now just add 180 days from today - note that this    // will push the possible end date out too far...    //AspectValue afterAV = new TimeAspectValue(AspectType.END_TIME,     //				    inventoryPlugin.getEndOfDeplyment());     AspectValue afterAV = new TimeAspectValue(AspectType.END_TIME,					      getTimeUtils().addNDays(start, 180));    ScoringFunction endTimeSF = ScoringFunction.	createVScoringFunction(beforeAV, bestAV, afterAV);    return inventoryPlugin.getRootFactory().	  newPreference(AspectType.END_TIME, endTimeSF);  }