courtesyMonitor = new UnconditionalCourtesyMonitor();
}
ThreadFactory threadFactory = new BackgroundThreadFactory();
ProgressStateFactory monitorFactory = new ProgressStateFactory();
worker = new ThreadServiceWorker(serviceFactory, threadFactory, monitorFactory, courtesyMonitor);
worker.setMaxWorkers(numberOfCpus);
taskProgressStates = monitorFactory.getProgressStates();
if (!internal) {