}
@SuppressWarnings("unchecked")
public List<RegistrationAppointment> getAppointmentsOnThatWeekDay(GDDate date) {
try {
return (List<RegistrationAppointment>) system.query(new GetAppointmentsOrReplacementsMap(date, false));
} catch (Exception e) {
e.printStackTrace();
}
return null;
}