error("(this is not an error) Update catoken classpath ("+htokeninfo.getClassPath()+") for ca with id: "+caid);
error("(this is not an error) Updated catoken classpath ("+htokeninfo.getClassPath()+") for ca with id: "+caid);
    public void upgradeFromOldCAHSMKeyStore(Admin admin, int caid){        try{            // check authorization            if(admin.getAdminType() !=  Admin.TYPE_CACOMMANDLINE_USER)              getAuthorizationSession().isAuthorizedNoLog(admin,"/super_administrator");            CADataLocal cadata = cadatahome.findByPrimaryKey(new Integer(caid));            CA ca = cadata.getCA();            CAToken token = ca.getCAToken();            CATokenInfo tokeninfo = token.getCATokenInfo();            HardCATokenInfo htokeninfo = null;            if (tokeninfo instanceof HardCATokenInfo) {            	error("(this is not an error) Found hard token for ca with id: "+caid);				htokeninfo = (HardCATokenInfo)tokeninfo;				} else {            	error("(this is not an error) No need to update soft token for ca with id: "+caid);			}            if (htokeninfo != null) {            	if (htokeninfo.getClassPath().equals("se.anatom.ejbca.ca.caadmin.hardcatokens.NFastCAToken")             			|| htokeninfo.getClassPath().equals("se.primeKey.caToken.nFast.NFastCAToken")) {            		htokeninfo.setClassPath("org.ejbca.core.model.ca.catoken.NFastCAToken");                	error("(this is not an error) Update catoken classpath ("+htokeninfo.getClassPath()+") for ca with id: "+caid);            		token.updateCATokenInfo(htokeninfo);            		ca.setCAToken(token);            		cadata.setCA(ca);            	} else {                	error("(this is not an error) Ne need to update catoken classpath ("+htokeninfo.getClassPath()+") for ca with id: "+caid);            		            	}            }                    }catch(Exception e){        	error("An error occured when trying to upgrade hard token classpath: ", e);            getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CACREATED,"An error occured when trying to upgrade hard token classpath", e);            throw new EJBException(e);        }    } // upgradeFromOldCAHSMKeyStore