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