Actually I did it at first like that, but then you have the problem that there is already another method with an int parameter, namely with degreeOfParallelism. This implies that one cannot independently specify degreeOfParallelism or numTaskManager.