code: public static Indexer create(String mapTxt) {
          Context cx = Context.enter();
          try {
              return new Indexer(mapTxt, cx);
          } finally {
              Context.exit();
          }
      }
docs: Create a new indexer object
  @param mapTxt The text of the map function
  @return indexer