private void createOfficeHours(Instructor instructor) {
   for (EventInformation eventInformation : instructor.getOfficeHours()) {
     Long eventInformationId = commonDao.getEventInformationId(eventInformation);
     if (eventInformationId == null) {
       commonDao.createEventInformation(eventInformation);
       eventInformationId = commonDao.getEventInformationId(eventInformation);
     }
     commonDao.createOfficeHours(instructor.getId(), eventInformationId);
   }
 }
 private void createMeetingHours(Course course) {
   for (EventInformation eventInformation : course.getMeetingHours()) {
     Long eventInformationId = commonDao.getEventInformationId(eventInformation);
     if (eventInformationId == null) {
       commonDao.createEventInformation(eventInformation);
       eventInformationId = commonDao.getEventInformationId(eventInformation);
     }
     commonDao.createMeetingHours(course.getId(), eventInformationId);
   }
 }