oldThread.stop(); //This is decprecated, but is there another way to stop a Runnable?
}
} else {
ServletContext context = this.getServlet().getServletContext();
ValidationConfig validationConfig = (ValidationConfig) context.getAttribute(ValidationConfig.CONFIG_KEY);
TestSuiteConfig suiteConfig = (TestSuiteConfig) request.getSession().getAttribute(TestSuiteConfig.CURRENTLY_SELECTED_KEY);
Map plugins = new HashMap();
Map testSuites = new HashMap();
validationConfig.toDTO(plugins,testSuites); // return by ref.
TestValidationResults results = new TestValidationResults();
try {
ValidationRunnable testThread = new ValidationRunnable(request);
testThread.setup(results, getDataConfig().toRepository(context), plugins, testSuites);