@Override
  public void reinitializeWithWorkingDirectory(File workingDirectory) {
    logger.info("Reinitializing JarDeploymentService with new working directory: {}",
        workingDirectory);
    if (deployments.isEmpty()) {
      jarDeployer = new JarDeployer(workingDirectory);
    } else {
      throw new RuntimeException(
          "Cannot reinitialize working directory with existing deployments. Please undeploy first.");
    }
  }
Implementation of {@link JarDeploymentService} that encapsulates the standard method of deploying
jars by delegating to the {@link JarDeployer}.

@since Geode 1.15
geode-deployment/geode-deployment-legacy/src/main/java/org/apache/geode/deployment/internal/legacy/LegacyJarDeploymentService.java