code: private static Alternative addMappedArguments(Alternative ab, Alternative dest, Map<Attribute, Merger> mapping) {
          int i;
          int max;
          Attribute attr;
  
          max = ab.getArgCount();
          for (i = 0; i < max; i++) {
              attr = Merger.map(mapping, ab.getArgAttribute(i));
              if (!dest.contains(ab.getArgOfs(i), attr)) {
                  dest.add(ab.getArgOfs(i), attr);
              }
          }
          return ab;
      }
docs: TODO: move to Alternative