void () { logConsumer.consume("'" + deploymentName + "' has been undeployed successfully."); Set<String> namesToDispose = new LinkedHashSet<>(); namesToDispose.add(deploymentName); if (undeployInProgress != null) { undeployInProgress.succeeded(); undeployInProgress.getSubDeployments().forEach(deployment -> namesToDispose.add(deployment.getName())); } namesToDispose.forEach(name -> disposeAllLogs(name)); myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); computeDeployments(myRuntimeInstance, EmptyRunnable.INSTANCE); }