}
}  if(data.get(USECNPOSTFIX) == null){ setUseCNPostfix(false); setCNPostfix(""); }
    public void upgrade(){        log.debug(">upgrade");        if(LATEST_VERSION != getVersion()){            // New version of the class, upgrade            log.info("upgrading certificateprofile with version "+getVersion());            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("");            }                        if(data.get(USEMICROSOFTTEMPLATE) == null){                setUseMicrosoftTemplate(false);                            setMicrosoftTemplate("");            }                  }        log.debug("<upgrade");    }