code: function (id) {
              // the id must come from the real template context (for a macro lib today, this is not the real
              // templateCtxt)
              var genId = this._out.tplCtxt._generateDomId(id);
              if (genId) {
                  this._out.write('id="' + genId + '"');
              }
          }
docs: Write generated ID to DOM Element. This method is intended to be called only from the generated code of
  templates (created in aria.templates.ClassGenerator) and never directly from developper code. A call to
  this method is generated for the {id ...} statement
  @param {String} id specified in the template
  @private
  @implements aria.templates.ITemplate