code: public String getName(Activity activity) {
          if (nameTokens != null && nameTokens.length > 0) {
              TokenEvaluator evaluator = new TokenExpression(activity);
              return evaluator.evaluateAsString(nameTokens);
          } else {
              return name;
          }
      }
docs: Gets the dispatch name.
  
  @param activity the activity
  @return the dispatch name