ItemInput itemInput = (ItemInput) it_inp.next();
String ident = itemInput.getIdent();
ItemContext ict = sc.getItemContext(ident);
if (ict == null) throw new RuntimeException("submitted item id ("+ident+") not found in section sectioncontext "+sc.getIdent());
int subres = ict.addItemInput(itemInput);
ict.eval(); // to be up-to-date with the scores
if (subres != QTIConstants.ITEM_SUBMITTED) {
// item had a timelimit or maxattempts, which is nonsense if displaymode = sectionPage
// throw new RuntimeException("section "+sc.getIdent()+" was submitted, but item "+ict.getIdent()+" could not be submitted, because it had a timelimit or maxattempts, which is nonsense if displaymode = sectionPage");
sectionResult = QTIConstants.ERROR_SECTION_PART_OUTOFTIME;
}