}
public boolean isValid(DinDinScheduleEvent selected) {
boolean isValid = true;
for(ScheduleEvent event : eventModel.getEvents()) {
DinDinScheduleEvent dindinEvent = (DinDinScheduleEvent)event;
if(dindinEvent.getStartDate().equals(selected.getStartDate()) &&
dindinEvent.getMealType().equals(selected.getMealType()) &&
selected != dindinEvent) {
isValid = false;
break;
}
}