code: public static void insertValue(HashMap m, String var, String val) {
          insertValue(m, var, val, null);
      }
docs: Inserts the variable in the appropriate place in a {@link HashMap},
  according to the AcePathfinder.
  
  @param m the HashMap to add the variable to.
  @param var Variable to lookup
  @param val the value to insert into the HashMap