code: public static Map<String, Automaton> createAutomatonMap(String prefix,
        List<String> valueList, Boolean filter) {
      HashMap<String, Automaton> automatonMap = new HashMap<>();
      if (valueList != null) {
        for (String item : valueList) {
          if (filter) {
            item = item.replaceAll("([\\\"\\)\\(\\<\\>\\.\\@\\#\\]\\[\\{\\}])",
                "\\\\$1");
          }
          automatonMap.put(item,
              new RegExp(prefix + MtasToken.DELIMITER + item + "\u0000*")
                  .toAutomaton());
        }
      }
      return automatonMap;
    }
docs: Creates the automaton map.
  
  @param prefix the prefix
  @param valueList the value list
  @param filter the filter
  @return the map