el.addAttribute("countEarly", "" + mgc.isCountEarly());
for (Event ev : mgc.getEvents()) {
el.addElement("event").addAttribute("ref", "" + ev.getId());
}
} else if (constr instanceof DifferentDayConstraint) {
DifferentDayConstraint ddc = (DifferentDayConstraint) constr;
for (Event ev : ddc.getEvents()) {
el.addElement("event").addAttribute("ref", "" + ev.getId());
}
} else
throw new UnsupportedOperationException("Constraint export/import not yet implemented for class " + constr.getClass().getName());