code: private static Selector substitute(Identifier id, List[] equatedIds) {
      for (int i = 0; i < equatedIds[0].size(); i++)
        if (id.getName().equals(equatedIds[0].get(i)))
          return new LiteralImpl(equatedIds[1].get(i));
      return id;
    }
docs: if not matched.