try {
startAdditionalWorkers(taskExecutionPlan, taskListener, executor);
taskWorker(taskExecutionPlan, taskListener).run();
taskExecutionPlan.awaitCompletion();
} finally {
executor.stop();
}
}
private void startAdditionalWorkers(TaskExecutionPlan taskExecutionPlan, TaskExecutionListener taskListener, Executor executor) {
List<Project> projects = getAllProjects(taskExecutionPlan);