docs: function (out) {
              out.writeln("__$initTemplate: function() {");
              out.increaseIndent();
              if (out.parentClassType == this._classType) {
                  // call the parent __$initTemplate only in case of template inheritance
                  out.writeln("if (! this.$", out.parentClassName, ".__$initTemplate.call(this)) { return false; }");
              }
              out.write(out.getBlockContent("initTemplate"));
              var gv = out.getBlockContent("globalVars");
              if (gv.length > 0) {
                  out.writeln("try {");
                  out.increaseIndent();
                  out.writeln("with (this) {");
                  out.increaseIndent();
                  out.write(gv);
                  out.decreaseIndent();
                  out.writeln("}"); // end with
                  out.decreaseIndent();
                  out.writeln("} catch (_ex) {");
                  out.increaseIndent();
                  out.writeln("this.$logError(this.EXCEPTION_IN_VARINIT,[this.$classpath],_ex);");
                  out.writeln("return false;");
                  out.decreaseIndent();
                  out.writeln("}");
              }
              out.writeln("return true;");
              out.decreaseIndent();
              out.writeln("}");
          }