addField(AVAILCAS); addField(DEFAULTCA); setRequired(AVAILCAS,0,true); setRequired(DEFAULTCA,0,true);
ArrayList numberarray = (ArrayList)   data.get(NUMBERARRAY); while(numberarray.size() < 39){ numberarray.add(new Integer(0)); } data.put(NUMBERARRAY,numberarray);  addField(AVAILCAS); addField(DEFAULTCA); setRequired(AVAILCAS,0,true); setRequired(DEFAULTCA,0,true);
    public void upgrade(){      if(LATEST_VERSION != getVersion()){        // New version of the class, upgrade        if(getVersion() < 1){          ArrayList numberarray = (ArrayList)   data.get(NUMBERARRAY);          while(numberarray.size() < 37){             numberarray.add(new Integer(0));          }          data.put(NUMBERARRAY,numberarray);        }               if(getVersion() < 2){          addField(AVAILCAS);          addField(DEFAULTCA);          setRequired(AVAILCAS,0,true);          setRequired(DEFAULTCA,0,true);        }                if(getVersion() < 3){            setNotificationSubject("");        	setNotificationSender("");        	setNotificationMessage("");        }                     data.put(VERSION, new Float(LATEST_VERSION));      }    }