final int numThreads = Math.max(1, ClassicEngineBoot.getInstance().getExtendedConfig().getIntProperty
("org.pentaho.reporting.engine.classic.core.testsupport.gold.MaxWorkerThreads",
Math.max (1, Runtime.getRuntime().availableProcessors() - 1)));
StopWatch w = new StopWatch();
w.start();
try
{
if (numThreads == 1)
{
runAllGoldReportsSerial();