code: @Override
      public void stop(final Logger logger) {
          try {
              logger.logInfo("Stopping ApacheDS server");
              server.stop();
              service.shutdown();
              logger.logInfo("Stopped ApacheDS server");
          } catch (final Exception e) {
              logger.logError("Error stopping ApacheDS server", e);
          }
      }
docs: Shutdown the the embedded ApacheDS server.
  
  @param logger Used to log informational and error messages.