CACacheManager.instance().removeCA(cadata.getCaId().intValue());
CACacheManager.instance().removeCA(caid);
    public void removeCA(Admin admin, int caid) throws AuthorizationDeniedException{        // check authorization        try{            getAuthorizationSession().isAuthorizedNoLog(admin,"/super_administrator");        }catch(AuthorizationDeniedException e){            getLogSession().log(admin, caid, LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,"Administrator isn't authorized to remove CA",e);            throw new AuthorizationDeniedException("Not authorized to remove CA with caid = " + caid);        }        // Get CA from database        try{            CADataLocal cadata = cadatahome.findByPrimaryKey(new Integer(caid));            // Remove CA            cadata.remove();			// Invalidate CA cache to refresh information			CACacheManager.instance().removeCA(cadata.getCaId().intValue());            // Remove an eventual CA token from the token registry            HardCATokenManager.instance().addCAToken(caid, null);            getLogSession().log(admin, caid, LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_INFO_CAEDITED,"CA Removed");        }catch(Exception e) {            getLogSession().log(admin, caid, LogEntry.MODULE_CA,  new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CAEDITED,"Error when trying to remove CA.",e);            throw new EJBException(e);        }    } // removeCA