private SahiTestSuite getSuite(final HttpRequest request) {
if (request.getParameter("browserType") != null) {
return getPreconfiguredBrowserSuite(request);
}
Session session = request.session();
String suitePath = request.getParameter("suite");
String base = request.getParameter("base");
String browser = request.getParameter("browser");
String browserOption = request.getParameter("browserOption");
String browserProcessName = request.getParameter("browserProcessName");
String threads = request.getParameter("threads");
boolean isSingleSession = "true".equals(request.getParameter("useSingleSession"));
boolean useSystemProxy = "true".equals(request.getParameter("useSystemProxy"));
final SahiTestSuite suite = prepareSuite(suitePath, base, browser, session.id(), browserOption,
browserProcessName, threads, useSystemProxy, isSingleSession, request);
return suite;
}