}
// if the scoType is "sco", then we have to generate our CMI model
// for it...
if (scoType.equals(SCORM12_Core.SCO)) {
CMI_DataModel scoModel = new CMI_DataModel(settings.getStudentId(), settings.getStudentName(), maxTimeText, timeLimitText,
datafromLmsText, masteryScoreText, settings.getLessonMode(), settings.getCreditMode());
scoModel.buildFreshModel();
Document theModel = scoModel.getModel();
File scoFile = settings.getScoDataModelFile(id);
scoFile.getParentFile().mkdirs();
scoModel.setDocument(theModel);
scoModel.setFile(scoFile);
try {
scoModel.saveDocument();
} catch (IOException ex) {
throw new OLATRuntimeException(this.getClass(), "Could not save sco settings.", ex);
}
}
}