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