public static void addTask(JobPlan object, ObjectBroker Objbroker) throws IOException {
   List<SearchResultItem> items =
       Objbroker.searches.searchExecutableObjects(ProcessSpecificCLI.U_ADDTASK);
   if (items.isEmpty()) {
     System.out.println(" %% No Task Found Matching Pattern: " + ProcessSpecificCLI.U_ADDTASK);
   } else {
     for (int g = 0; g < items.size(); g++) {
       JobPlanTask jptask = Objbroker.jobPlans.getTaskFromName(items.get(g).getName());
       jptask.setX(g + 1);
       jptask.setY(2);
       System.out.println(
           "\t ++ UPDATE: Add Task to JobPlan: [ "
               + jptask.getTaskName()
               + " | "
               + jptask.getType()
               + " | {"
               + jptask.getX()
               + ","
               + jptask.getY()
               + "} ]");
       object.addTask(jptask);
       object.format();
     }
   }
 }
  public static void addTaskAtPosition(JobPlan object, ObjectBroker Objbroker) throws IOException {

    String[] RawVals = ProcessSpecificCLI.U_ADDTASKATPOSITION.split(","); // splits ["TASK","1","2"]
    String TaskName = RawVals[0].replace("[", "");
    String PosX = RawVals[1];
    int iPosX = Integer.parseInt(PosX);
    String PosY = RawVals[2].replace("]", "");
    int iPosY = Integer.parseInt(PosY);
    System.out.println(" ++ Adding Task: " + TaskName + " at: [" + iPosX + "," + iPosY + "]");
    JobPlanTask jptask = Objbroker.jobPlans.getTaskFromName(TaskName);
    jptask.setX(iPosX);
    jptask.setY(iPosY);
    System.out.println(
        "\t ++ UPDATE: Add Task to JobPlan: [ "
            + jptask.getTaskName()
            + " | "
            + jptask.getType()
            + " | {"
            + jptask.getX()
            + ","
            + jptask.getY()
            + "} ]");
    object.addTask(jptask);
  }