public ims.RefMan.vo.beans.ReferralAppointmentDetailsVoBean[] getBeanCollectionArray() {
   ims.RefMan.vo.beans.ReferralAppointmentDetailsVoBean[] result =
       new ims.RefMan.vo.beans.ReferralAppointmentDetailsVoBean[col.size()];
   for (int i = 0; i < col.size(); i++) {
     ReferralAppointmentDetailsVo vo = ((ReferralAppointmentDetailsVo) col.get(i));
     result[i] = (ims.RefMan.vo.beans.ReferralAppointmentDetailsVoBean) vo.getBean();
   }
   return result;
 }
 public int compare(Object obj1, Object obj2) {
   ReferralAppointmentDetailsVo voObj1 = (ReferralAppointmentDetailsVo) obj1;
   ReferralAppointmentDetailsVo voObj2 = (ReferralAppointmentDetailsVo) obj2;
   return direction * (voObj1.compareTo(voObj2, this.caseInsensitive));
 }