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