gatkArguments.numberOfCPUThreadsPerDataThread =cpuThreadCount;
gatkArguments.numberOfDataThreads = dataThreadCount;
toolkit.setArguments(gatkArguments);
final StandardCallerArgumentCollection callerArgs = new StandardCallerArgumentCollection();
if (impl != null) callerArgs.requestedAlleleFrequencyCalculationModel = impl;
final GenotypeCalculationArgumentCollection genotypeArgs = new GenotypeCalculationArgumentCollection();
callerArgs.genotypeArgs = genotypeArgs;
genotypeArgs.samplePloidy = ploidy;
genotypeArgs.MAX_ALTERNATE_ALLELES = maxAltAlleles;
final AFCalculatorProvider provider = FixedAFCalculatorProvider.createThreadSafeProvider(toolkit,callerArgs,null);
final Hashtable<Thread,AFCalculator> perThreadProvider = new Hashtable(cpuThreadCount * dataThreadCount);