Verb newverb = new Verb(Constants.Verb.TRANSPORT);
Verb newverb = Verb.get(Constants.Verb.TRANSPORT);
  private void expand (Task task) {    //	System.out.println("&&&&&&&&&&&&&&&&& DRtoST Starting to expand");    Asset mystuff = null;    //	System.out.println("&&&&&&&&&&&&&&&&&&&&& DRtoST myComponent is: " + myComponent);    MessageAddress me = getMessageAddress();    Verb newverb = new Verb(Constants.Verb.TRANSPORT);    startDate = rightNow.getTime();    // increment date by 5 DAYS    rightNow.add(Calendar.DATE, 5);    endDate = rightNow.getTime();    Vector mypreferences = new Vector();    Enumeration e = nonorgassets.elements();    NewWorkflow wf = theLDMF.newWorkflow();    wf.setIsPropagatingToSubtasks(true);    wf.setParentTask(task);    AllocationResult estAR = null;    if (!e.hasMoreElements()) { // No non-org assets      estAR = PluginHelper.createEstimatedAllocationResult(task, theLDMF, 1.0, true);    }    while (e.hasMoreElements()) {      if (++count > 10) {        resettime();		// after every 10 tasks, change the date      }      NewTask subtask = theLDMF.newTask();      mystuff = (Asset) e.nextElement();				//}      if ( mystuff != null ) {        //System.out.println("&&&&&&&&&&&&&&&&&&&&& DRtoST solenoid myasset: " + mystuff);      } else {        System.err.println("&&&&&&&&&&&&&&&&&&&&&& DRtoST solenoid myasset is NULL!!!");      }				// Look for prepositionalphrase in parent task, FOR <clusterasset>				// and copy it into the new TRANSPORT subtask      Vector prepphrases = new Vector();      Enumeration origpp = task.getPrepositionalPhrases();      while (origpp.hasMoreElements()) {        PrepositionalPhrase app = (PrepositionalPhrase) origpp.nextElement();        if ((app.getPreposition().equals(Constants.Preposition.FOR)) && (app.getIndirectObject() instanceof Asset) ) {	          prepphrases.addElement(app);        }      } 				// create prepositionalphrase oftype strategictransportation      NewPrepositionalPhrase pp = theLDMF.newPrepositionalPhrase();      pp.setPreposition(Constants.Preposition.OFTYPE);      AbstractAsset strans = null;      try {          PlanningFactory ldmfactory = getFactory();          Asset strans_proto = ldmfactory.createPrototype( Class.forName( "org.cougaar.planning.ldm.asset.AbstractAsset" ), "StrategicTransportation" );          strans = (AbstractAsset)ldmfactory.createInstance( strans_proto );      } catch (Exception exc) {        System.out.println("DRtoSTExp - problem creating the abstract strategictransport asset");        exc.printStackTrace();      }      pp.setIndirectObject(strans);      prepphrases.addElement(pp);      NewPrepositionalPhrase from = new PrepositionalPhraseImpl();      from.setPreposition(Constants.Preposition.FROM);      NewGeolocLocation fromgl = new GeolocLocationImpl();      fromgl.setName("FT STEWART");      fromgl.setGeolocCode("HKUZ");      fromgl.setCountryStateName("GEORGIA");      from.setIndirectObject(fromgl);      prepphrases.addElement(from);		      NewPrepositionalPhrase to = new PrepositionalPhraseImpl();      to.setPreposition(Constants.Preposition.TO);      NewGeolocLocation togl = new GeolocLocationImpl();      togl.setName("FT IRWIN");      togl.setGeolocCode("HFXZ");      togl.setCountryStateName("CALIFORNIA");      to.setIndirectObject(togl);      prepphrases.addElement(to);	      // Create transport task       subtask.setParentTask( task );      subtask.setDirectObject( mystuff );      subtask.setPrepositionalPhrases( prepphrases.elements() );      subtask.setVerb( newverb );      subtask.setPlan( task.getPlan() );				// create some start and end time preferences      mypreferences.removeAllElements();      AspectValue startAV = AspectValue.newAspectValue(AspectType.START_TIME, startDate.getTime());      ScoringFunction startSF = ScoringFunction.createPreferredAtValue(startAV, 2);      Preference startPref = theLDMF.newPreference(AspectType.START_TIME, startSF);      mypreferences.addElement(startPref);      AspectValue endAV = AspectValue.newAspectValue(AspectType.END_TIME, endDate.getTime());      ScoringFunction endSF = ScoringFunction.createPreferredAtValue(endAV, 2);      Preference endPref = theLDMF.newPreference(AspectType.END_TIME, endSF);      mypreferences.addElement(endPref);      subtask.setPreferences( mypreferences.elements() );      subtask.setSource( me );      wf.addTask(subtask);      subtask.setWorkflow(wf);      publishAdd(subtask);    }    publishAdd(wf);    createTheExpansion(wf, task, estAR);  }