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