public static void main(String[] args) throws Exception {
    try {
      // Boilerplate startup stuff
      Implementation.setServerType(Implementation.Type.BUKKIT);
      ClassDiscovery.getDefaultInstance()
          .addDiscoveryLocation(ClassDiscovery.GetClassContainer(DocGen.class));
      ExtensionManager.Initialize(ClassDiscovery.getDefaultInstance());
      Installer.Install(CommandHelperFileLocations.getDefault().getConfigDirectory());
      Prefs.init(CommandHelperFileLocations.getDefault().getPreferencesFile());
      CHLog.initialize(CommandHelperFileLocations.getDefault().getConfigDirectory());

      // System.out.println(functions("wiki", api.Platforms.INTERPRETER_JAVA, true));
      System.out.println(examples("if", true));
      // System.exit(0);
      // events("wiki");
      // System.out.println(Template("persistence_network"));
    } catch (Throwable t) {
      t.printStackTrace();
      System.exit(1);
    } finally {
      System.exit(0);
    }
  }
 @Override
 public URL getSourceJar() {
   return ClassDiscovery.GetClassContainer(this.getClass());
 }