}
private ExamSystem createExamSystem() throws IOException {
systemType = cm.getProperty(EXAM_SYSTEM_KEY, EXAM_SYSTEM_TEST);
String timeout = cm.getProperty(EXAM_SERVICE_TIMEOUT_KEY, EXAM_SERVICE_TIMEOUT_DEFAULT);
Option timeoutOption = new SystemPropertyOption(EXAM_SERVICE_TIMEOUT_KEY).value(timeout);
if (EXAM_SYSTEM_DEFAULT.equals(systemType)) {
system = DefaultExamSystem.create(new Option[] { timeoutOption });
}
else if (EXAM_SYSTEM_JAVAEE.equals(systemType)) {
system = DefaultExamSystem.create(new Option[] { new WarProbeOption() });