public int compareTo(Object obj, boolean caseInsensitive) {
   if (obj == null) {
     return -1;
   }
   if (caseInsensitive) ; // this is to avoid eclipse warning only.
   if (!(PathologyResultListShortVo.class.isAssignableFrom(obj.getClass()))) {
     throw new ClassCastException(
         "A PathologyResultListShortVo object cannot be compared an Object of type "
             + obj.getClass().getName());
   }
   PathologyResultListShortVo compareObj = (PathologyResultListShortVo) obj;
   int retVal = 0;
   if (retVal == 0) {
     if (this.getDisplayDateTime() == null && compareObj.getDisplayDateTime() != null) return -1;
     if (this.getDisplayDateTime() != null && compareObj.getDisplayDateTime() == null) return 1;
     if (this.getDisplayDateTime() != null && compareObj.getDisplayDateTime() != null)
       retVal = this.getDisplayDateTime().compareTo(compareObj.getDisplayDateTime());
   }
   return retVal;
 }