code: protected void init(com.sun.javadoc.RootDoc root,
                        String dest,
                        String templateClassName) throws Exception {
  
          mRootDoc = new RootDoc(root);
  
          mDest = new File(dest);
          mDest.mkdirs();
  
          mTemplateClassName = templateClassName;
          if (mTemplateClassName == null) {
              printWarning("No template name");
              return;
          }
  
          String[] templatePath = ClassDoc.parseClassName(mTemplateClassName);
  
          //
          // Load the specified template class
          //
  
          TemplateLoader loader =
              new TemplateLoader(getClass().getClassLoader(),
                                 templatePath[0]);
  
          mTemplate = loader.getTemplate(templatePath[1]);
  
          Class[] params = mTemplate.getParameterTypes();
          if (params.length != 1 || params[0] != ClassDoc.class) {
              printError("Template has incorrect param signature");
          }
      }
docs: Initializes the BeanDocDoclet instance.