ExpanderHelper.createEstimatedAllocationResult(newTask, theLDMF);
PlugInHelper.createEstimatedAllocationResult(newTask, theLDMF, 0.0, true);
  protected void doExpansion (TaskInfo toTask, Task parentTask) {    RootFactory f = getFactory();    NewWorkflow wf = f.newWorkflow();    wf.setParentTask(parentTask);                        NewTask newTask = f.newTask();    newTask.setParentTask(parentTask);    newTask.setPlan(parentTask.getPlan());    newTask.setDirectObject(parentTask.getDirectObject());    newTask.setPreferences(parentTask.getPreferences());    newTask.setVerb(Verb.getVerb(toTask.verb));                        NewPrepositionalPhrase npp = f.newPrepositionalPhrase();    npp.setPreposition(Constants.Preposition.FOR);    ClusterIdentifier ci = new ClusterIdentifier(toTask.taskFor);    npp.setIndirectObject(ci);    NewPrepositionalPhrase npp1 = f.newPrepositionalPhrase();    npp1.setPreposition(Constants.Preposition.OFTYPE);    Asset myasset = f.createAsset("Asset");    NewTypeIdentificationPG ti =       (NewTypeIdentificationPG) myasset.getTypeIdentificationPG();    ti.setTypeIdentification(toTask.ofType);                          npp1.setIndirectObject(myasset);    Vector v = new Vector();    v.addElement(npp);    v.addElement(npp1);      newTask.setPrepositionalPhrases(v.elements());    newTask.setWorkflow(wf);      AllocationResult ar =      ExpanderHelper.createEstimatedAllocationResult(newTask, theLDMF);    Expansion exp =      f.createExpansion(parentTask.getPlan(), newTask, wf, ar);    publishAdd(exp);  }