code: public void registerTemplate(ITemplate template) {
          //TemplateResourceManager rm = resourceManager();
          String name;
          if (template instanceof JavaTagBase) {
              name = template.__getName();
          } else {
              name = template.__getTemplateClass(false).getTagName();
          }
          registerTemplate(name, template);
      }
docs: Register a template.
  <p>Not an API for user application</p>