code: Variable getVariable(String name) {
      VarKey varKey = VarKey.create(Kind.USER_DEFINED, name);
      return getVariable(varKey);
    }
docs: Looks up a user defined variable with the given name. The variable must have been created in a
  currently active scope.