@Override
public void updateAppointments(HashSet<String> appList) {
HashSet<String> set = loadDirectory(Appointment.class);
for (String title : appList) {
if (!set.contains(title)) {
Appointment entity = new Appointment();
entity.setTitle(title);
entity.setDirty(false);
manager.persist(entity);
set.add(entity.getTitle());
}
}
}