ntask.setVerb(new Verb(theverb));
ntask.setVerb(Verb.get(theverb));
  public PlanElement createAPlanElement(String theverb) {    PlanningFactory factory = getFactory();    NewTask ntask = factory.newTask();    // only fill in a few things on the task since it is only for testing.    // if this was a real task we would need to fill in more.    ntask.setVerb(new Verb(theverb));    ntask.setPlan(factory.getRealityPlan());            Asset theasset = null;    Enumeration assete = selfAssets.elements();    if (assete.hasMoreElements()) {      theasset = (Asset) assete.nextElement();    }        if (theasset != null) {      // create an allocationresult      Calendar now = Calendar.getInstance();      now.add(Calendar.DATE, 5);      AspectValue time1 = TimeAspectValue.create(AspectType.START_TIME, now.getTime());      now.add(Calendar.DATE, 5);      AspectValue time2 = TimeAspectValue.create(AspectType.END_TIME, now.getTime());      AspectValue[] avresults = {time1, time2};      AllocationResult theresult = factory.newAVAllocationResult(1.0, true, avresults);      // create an allocation of the new task to this cluster      Allocation newalloc = factory.createAllocation(ntask.getPlan(), ntask, theasset, theresult, Constants.Role.TRANSPORTER);      // make it stale for testing purposes      //newalloc.setStale(true);      publishAdd(newalloc);      return newalloc;    } else {      System.err.println("Don't have an asset to allocate to!!!");    }    //if we make it to here, there was a problem    return null;  }