if (rev.getStatus() != CertificateData.CERT_REVOKED) {
if (rev.getStatus() != CertificateDataBean.CERT_REVOKED) {
    public boolean checkIfAllRevoked(Admin admin, String username) {        boolean returnval = true;        X509Certificate certificate = null;        // Strip dangerous chars        username = StringTools.strip(username);        try {            Collection certs = findCertificatesByUsername(admin, username);            // Revoke all certs            if (!certs.isEmpty()) {                Iterator j = certs.iterator();                while (j.hasNext()) {                    CertificateDataPK revpk = new CertificateDataPK();                    certificate = (X509Certificate) j.next();                    revpk.fingerprint = CertTools.getFingerprintAsString(certificate);                    CertificateDataLocal rev = certHome.findByPrimaryKey(revpk);                    if (rev.getStatus() != CertificateData.CERT_REVOKED) {                        returnval = false;                    }                }            }        } catch (FinderException e) {            throw new EJBException(e);        }        return returnval;    }