ThreadPoolExecutor replaced by an ExecutorService