public ims.scheduling.vo.ExternalEventVo buildVo(ims.vo.ValueObjectBeanMap map) {
   ims.scheduling.vo.ExternalEventVo vo = null;
   if (map != null) vo = (ims.scheduling.vo.ExternalEventVo) map.getValueObject(this);
   if (vo == null) {
     vo = new ims.scheduling.vo.ExternalEventVo();
     map.addValueObject(this, vo);
     vo.populate(map, this);
   }
   return vo;
 }
 public void populate(ims.vo.ValueObjectBeanMap map, ims.scheduling.vo.ExternalEventVo vo) {
   this.id = vo.getBoId();
   this.version = vo.getBoVersion();
   this.eventtype =
       vo.getEventType() == null ? null : (ims.vo.LookupInstanceBean) vo.getEventType().getBean();
   this.appointment =
       vo.getAppointment() == null
           ? null
           : new ims.vo.RefVoBean(
               vo.getAppointment().getBoId(), vo.getAppointment().getBoVersion());
   this.wasprocessed = vo.getWasProcessed();
   this.providersystem =
       vo.getProviderSystem() == null
           ? null
           : (ims.ocrr.vo.beans.ProviderSystemVoBean) vo.getProviderSystem().getBean(map);
   this.messagestatus =
       vo.getMessageStatus() == null
           ? null
           : (ims.vo.LookupInstanceBean) vo.getMessageStatus().getBean();
   this.msgtext = vo.getMsgText();
   this.failuremsg = vo.getFailureMsg();
   this.processeddatetime =
       vo.getProcessedDateTime() == null
           ? null
           : (ims.framework.utils.beans.DateTimeBean) vo.getProcessedDateTime().getBean();
   this.investigation =
       vo.getInvestigation() == null
           ? null
           : new ims.vo.RefVoBean(
               vo.getInvestigation().getBoId(), vo.getInvestigation().getBoVersion());
   this.acktext = vo.getAckText();
 }