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

    AssessmentQuestionShortVo clone = new AssessmentQuestionShortVo(this.id, this.version);

    clone.ismandatory = this.ismandatory;
    if (this.activestatus == null) clone.activestatus = null;
    else
      clone.activestatus =
          (ims.core.vo.lookups.PreActiveActiveInactiveStatus) this.activestatus.clone();
    clone.sequence = this.sequence;
    clone.allowsmultipleanswers = this.allowsmultipleanswers;
    clone.isnonstandard = this.isnonstandard;
    clone.url = this.url;
    clone.protocol = this.protocol;
    clone.legendtext = this.legendtext;
    clone.isValidated = this.isValidated;

    this.isBusy = false;
    return clone;
  }