private void fillInTask(NewTask newRefill, long start, long end, long earliest,
private NewTask fillInTask(NewTask newRefill, long start, long end, long earliest,
  private void fillInTask(NewTask newRefill, long start, long end, long earliest,                           double qty, Asset asset) {    // create preferences    Vector prefs = new Vector();    Preference p_start,p_end,p_qty;    p_start = createRefillTimePreference(start, earliest);    p_end = createRefillTimePreference(end, earliest);    p_qty = createRefillRatePreference(qty);    prefs.add(p_start);    prefs.add(p_end);    prefs.add(p_qty);    newRefill.setPreferences(prefs.elements());    //create Prepositional Phrases    Vector pp_vector = new Vector();    pp_vector.add(createPrepPhrase(Constants.Preposition.FOR, getOrgName()));    pp_vector.add(createPrepPhrase(Constants.Preposition.OFTYPE,                                    inventoryPlugin.getSupplyType()));        Object io;    Enumeration geolocs = getAssetUtils().getGeolocLocationAtTime(								  getMyOrganization(),								  end);    if (geolocs.hasMoreElements()) {      io = (GeolocLocation)geolocs.nextElement();    } else {      io = getHomeLocation();    }    pp_vector.addElement(createPrepPhrase(Constants.Preposition.TO, io));    TypeIdentificationPG tip = asset.getTypeIdentificationPG();    MaintainedItem itemID = MaintainedItem.      findOrMakeMaintainedItem("Inventory", tip.getTypeIdentification(),                                null, tip.getNomenclature(), inventoryPlugin);    pp_vector.add(createPrepPhrase(Constants.Preposition.MAINTAINING, itemID));    pp_vector.add(createPrepPhrase(Constants.Preposition.REFILL, null));        newRefill.setPrepositionalPhrases(pp_vector.elements());  } 