if(LATEST_VERSION != getVersion()){
log.debug(">upgrade"); if(LATEST_VERSION != getVersion()){  log.info("upgrading certificateprofile with version "+getVersion());
    public void upgrade(){      if(LATEST_VERSION != getVersion()){        // New version of the class, upgrade        data.put(VERSION, new Float(LATEST_VERSION));        if(data.get(ALLOWKEYUSAGEOVERRIDE) == null)          data.put(ALLOWKEYUSAGEOVERRIDE, Boolean.TRUE);        if(data.get(USEEXTENDEDKEYUSAGE) ==null)          data.put(USEEXTENDEDKEYUSAGE, Boolean.FALSE);        if(data.get(EXTENDEDKEYUSAGE) ==null)          data.put(EXTENDEDKEYUSAGE, new ArrayList());        if(data.get(EXTENDEDKEYUSAGECRITICAL) == null)          data.put(EXTENDEDKEYUSAGECRITICAL, Boolean.FALSE);                if(data.get(AVAILABLECAS) == null){          ArrayList availablecas = new ArrayList();          availablecas.add(new Integer(ANYCA));          data.put(AVAILABLECAS, availablecas);        }                if(data.get(USEDPUBLISHERS) == null){          data.put(USEDPUBLISHERS, new ArrayList());           }        		if(data.get(USEOCSPSERVICELOCATOR) == null){	      setUseOCSPServiceLocator(false);  		  		  setOCSPServiceLocatorURI("");	    }      }    }