Update AppointmentFactory.java