new_task.setContext(parentTask.getContext());
    public Task planMe(SequentialPlannerPlugin myPlugin) {      SequentialGlobalAirPlugin plugin = (SequentialGlobalAirPlugin) myPlugin;      Logger logger = plugin.getLogger();      UTILExpand expandHelper = plugin.getExpandHelper();      GLMPrepPhrase glmPrepHelper = plugin.getPrepHelper();      Location toLocation;      Date end = null;      NewTask new_task = expandHelper.makeSubTask(myPlugin.publicGetFactory(),						  parentTask,						  parentTask.getDirectObject(),						  myPlugin.publicGetMessageAddress());      if (!getDependencies().isEmpty()) {	SequentialScheduleElement sse = (SequentialScheduleElement)getDependencies().elementAt(0);	Task dependingTask = sse.getTask ();	end = sse.getStartDate();	toLocation = glmPrepHelper.getFromLocation (dependingTask);      }      else {	end = plugin.getPrefHelper().getLateDate(new_task);	toLocation = plugin.getLocator().getPOENearestToFromLoc (parentTask);      }			      Date early = plugin.getPrefHelper().getReadyAt(new_task);      Date best  = new Date(end.getTime() - 1000);			        plugin.getPrefHelper().replacePreference(new_task, 					       plugin.getPrefHelper().makeEndDatePreference(myPlugin.publicGetFactory(), 											    early,best,end));      glmPrepHelper.replacePrepOnTask(new_task, 				      glmPrepHelper.makePrepositionalPhrase(myPlugin.publicGetFactory(),									    Constants.Preposition.TO,									    toLocation));      if (logger.isDebugEnabled())	logger.debug (".ConusPortion.planMe - created leg FROM " + glmPrepHelper.getFromLocation (new_task) + 		      " TO " + toLocation);      Organization conusGround = plugin.findOrgWithRole(GLMTransConst.CONUS_GROUND_ROLE);      if (conusGround == null) {	logger.error(".ConusPortion.planMe - ERROR - No subordinate with role " + 		     GLMTransConst.CONUS_GROUND_ROLE);	return null;      }      glmPrepHelper.removePrepNamed(new_task, GLMTransConst.SEAROUTE);      glmPrepHelper.removePrepNamed(new_task, GLMTransConst.SEAROUTE_DISTANCE);      PlanElement pe = plugin.getAllocHelper().makeAllocation(myPlugin,							      myPlugin.publicGetFactory(), 							      myPlugin.publicGetRealityPlan(),							      new_task,							      conusGround,    // allocate to conus ground							      plugin.getPrefHelper().getReadyAt(new_task),							      end,							      plugin.getAllocHelper().MEDIUM_CONFIDENCE,							      Constants.Role.TRANSPORTER);      myPlugin.publicPublishAdd(pe);      return new_task;    }