code: public void stopService() throws Exception {
          Log.info(c, "stopService", "Stopping LdapServer");
          this.server.stop();
          Log.info(c, "stopService", "Stopping DirectoryService");
          service.shutdown();
          Log.info(c, "stopService", "Ldap stopped.");
      }
docs: Stop the LdapServer and the Directory service. Use for JUnit teardown.
  If the service is not stopped, then future instances with the same name
  cannot clean up the file directory.