psc.getServerPluginSupport().getClusterIDAsString());
psc.getServerPlugInSupport().getClusterIDAsString());
  private static UITaskItinerary generateGSSTaskItinerary(Task task,                                                    PlanServiceContext psc)   {     Expansion expansion = (Expansion) task.getPlanElement();    if (expansion == null)       return null;    Workflow wf = expansion.getWorkflow();    if (wf == null)      return null;    UITaskItinerary itin = new UITaskItinerary();    setDefaultInformation(      itin,       psc.getServerPluginSupport().getClusterIDAsString());     setTaskInformation(itin, task);    // Grab the three legs of the mission, CONUS_GROUND, SEA/AIR, THEATER_GROUND    Task conus_ground_leg = null;    Task sea_air_leg = null;    Task theater_ground_leg = null;    for (Enumeration subtasks = wf.getTasks(); subtasks.hasMoreElements();) {      Task subtask = (Task)subtasks.nextElement();      if (conus_ground_leg == null)         conus_ground_leg = subtask;      else if (sea_air_leg == null)        sea_air_leg = subtask;      else if (theater_ground_leg == null)        theater_ground_leg = subtask;    }    if ((conus_ground_leg == null) ||         (sea_air_leg == null) ||         (theater_ground_leg == null))       return null;    // And fill them in as schedule elements for the itinerary object    Vector schedElems = itin.getScheduleElements();    schedElems.addElement(createUITaskItineraryElement(conus_ground_leg));    schedElems.addElement(createUITaskItineraryElement(sea_air_leg));    schedElems.addElement(createUITaskItineraryElement(theater_ground_leg));    itin.setScheduleElements(schedElems);    return itin;  }