docs: function (classpath, timestampNextTime, stopAtClasspath) {
              var classMgr = ariaCoreClassMgr;
              var scriptClasspath = classpath + "Script";
              var scriptLogicalPath = Aria.getLogicalPath(scriptClasspath, ".js");
              // do some cleaning in cache
              if (Aria.nspace(scriptClasspath, false) || ariaCoreCache.getItem("files", scriptLogicalPath)) {
                  classMgr.unloadClass(scriptClasspath, timestampNextTime);
              }
              var itm = Aria.$classDefinitions[classpath];
              if (itm) {
                  if (!Aria.nspace(classpath, false) && itm.$css) {
                      // when there is an error in the script, the class reference for the template is not created, so the
                      // css would not be unregistered in the unloadClass method
                      aria.templates.CSSMgr.unregisterDependencies(classpath, itm.$css, true, timestampNextTime);
                  }
                  if (itm.$resources != null) {
                      var resources = itm.$resources;
                      for (var res in resources) {
                          var curRes = resources[res];
                          if (resources.hasOwnProperty(res) && !curRes.hasOwnProperty("provider")) {
                              classMgr.unloadClass(Aria.getClasspath(curRes), timestampNextTime);
                          }
                      }
                  }
                  var ext = Aria.getClasspath(itm.$extends);
                  if ((ext != null) && (ext != "aria.templates.Template")) {
                      if ((stopAtClasspath !== undefined) && (stopAtClasspath != classpath)) {
                          this.unloadTemplate(ext, timestampNextTime, stopAtClasspath);
                      }
                  }
              } else {
                  // The template does not seem to be fully loaded currently.
                  // Maybe it failed to be loaded. Let's unload any of its dependencies which may have prevented it from
                  // being loaded.
                  // This is needed especially for the use case in test.aria.templates.reloadResources.ReloadResourcesTestCase
                  unloadFailingDependencies(Aria.getLogicalPath(classpath, ".tpl", true), timestampNextTime);
              }
              classMgr.unloadClass(classpath, timestampNextTime);
              // every thing is done : CSS are unhandled at classMgr level directly
              this.$raiseEvent({
                  name : "unloadTemplate",
                  classpath : classpath
              });
          }