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