if (data.get(POLICY_NOTICE_UNOTICE_TEXT) == null) { setUserNoticeText(null); } if (data.get(POLICY_NOTICE_CPS_URL) == null) { setCpsUrl(null); }
    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("");            }                         if(data.get(USECNPOSTFIX) == null){          	  setUseCNPostfix(false);        	  setCNPostfix("");            }                         if(data.get(USESUBJECTDNSUBSET) == null){          	  setUseSubjectDNSubSet(false);        	  setSubjectDNSubSet(new ArrayList());        	  setUseSubjectAltNameSubSet(false);        	  setSubjectAltNameSubSet(new ArrayList());            }                        if(data.get(USEPATHLENGTHCONSTRAINT) == null){            	setUsePathLengthConstraint(false);            	setPathLengthConstraint(0);            }                        if(data.get(USEQCSTATEMENT) == null){                setUseQCStatement(false);                setUsePkixQCSyntaxV2(false);                setQCStatementCritical(false);                setQCStatementRAName(null);                setQCSemanticsId(null);                setUseQCEtsiQCCompliance(false);                setUseQCEtsiSignatureDevice(false);                setUseQCEtsiValueLimit(false);                setQCEtsiValueLimit(0);                setQCEtsiValueLimitExp(0);                setQCEtsiValueLimitCurrency(null);            }                        if(data.get(USEDEFAULTCRLDISTRIBUTIONPOINT) == null){            	setUseDefaultCRLDistributionPoint(false);            	setUseDefaultOCSPServiceLocator(false);            }                    }        log.debug("<upgrade");    }