code: public void setName(String name) {
          this.name = name;
  
          List<Token> tokens = Tokenizer.tokenize(name, true);
          int tokenCount = 0;
  
          for (Token t : tokens) {
              if (t.getType() != TokenType.TEXT) {
                  tokenCount++;
              }
          }
  
          if (tokenCount > 0) {
              this.nameTokens = tokens.toArray(new Token[0]);
          } else {
              this.nameTokens = null;
          }
      }
docs: Sets the dispatch name.
  
  @param name the new dispatch name