public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) {
   ims.scheduling.vo.beans.BookingAppointmentForDisplacedAppointmentVoBean bean = null;
   if (map != null)
     bean =
         (ims.scheduling.vo.beans.BookingAppointmentForDisplacedAppointmentVoBean)
             map.getValueObjectBean(this);
   if (bean == null) {
     bean = new ims.scheduling.vo.beans.BookingAppointmentForDisplacedAppointmentVoBean();
     map.addValueObjectBean(this, bean);
     bean.populate(map, this);
   }
   return bean;
 }
 public void populate(
     ims.vo.ValueObjectBeanMap map,
     ims.scheduling.vo.beans.BookingAppointmentForDisplacedAppointmentVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.appointmentdate =
       bean.getAppointmentDate() == null ? null : bean.getAppointmentDate().buildDate();
   this.apptstarttime =
       bean.getApptStartTime() == null ? null : bean.getApptStartTime().buildTime();
   this.apptendtime = bean.getApptEndTime() == null ? null : bean.getApptEndTime().buildTime();
   this.activity = bean.getActivity() == null ? null : bean.getActivity().buildVo(map);
   this.patient = bean.getPatient() == null ? null : bean.getPatient().buildVo(map);
   if (bean.getLinkedAppointments() != null) {
     this.linkedappointments = new ims.scheduling.vo.Booking_AppointmentRefVoCollection();
     for (int linkedappointments_i = 0;
         linkedappointments_i < bean.getLinkedAppointments().length;
         linkedappointments_i++) {
       this.linkedappointments.add(
           new ims.scheduling.vo.Booking_AppointmentRefVo(
               new Integer(bean.getLinkedAppointments()[linkedappointments_i].getId()),
               bean.getLinkedAppointments()[linkedappointments_i].getVersion()));
     }
   }
   this.isdisplaced = bean.getIsDisplaced();
   this.servicefunction =
       bean.getServiceFunction() == null ? null : bean.getServiceFunction().buildVo(map);
   this.rttbreachkpidate =
       bean.getRTTBreachKPIDate() == null ? null : bean.getRTTBreachKPIDate().buildDate();
   this.iscabbooking = bean.getIsCABBooking();
   this.currentstatusrecord =
       bean.getCurrentStatusRecord() == null ? null : bean.getCurrentStatusRecord().buildVo(map);
   this.sessionslot = bean.getSessionSlot() == null ? null : bean.getSessionSlot().buildVo(map);
 }