}
} else if (constr instanceof PersonITCRasterConstraint) {
PersonITCRasterConstraint pc = (PersonITCRasterConstraint) constr;
el.addElement("person").addAttribute("ref", "" + pc.getPerson().getId());
} else if (constr instanceof MinGapsConstraint) {
MinGapsConstraint mgc = (MinGapsConstraint) constr;
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()) {