in src/main/java/org/apache/sling/testing/serversetup/jarexec/JarExecutor.java [198:209]
public void stop() {
if(executor == null) {
throw new IllegalStateException("Process not started, no Executor set");
}
final Object d = executor.getProcessDestroyer();
if(d instanceof ShutdownHookSingleProcessDestroyer) {
((ShutdownHookSingleProcessDestroyer)d).destroyProcess(true);
log.info("Process destroyed");
} else {
throw new IllegalStateException(d + " is not a Runnable, cannot destroy process");
}
}