}
    public void revokeCertificate(Admin admin, Collection publisherids, Certificate cert, int reason){      Iterator iter = publisherids.iterator();      while(iter.hasNext()){        Integer id = (Integer) iter.next();        try{          PublisherDataLocal pdl = publisherhome.findByPrimaryKey(id);          try{          pdl.getPublisher().revokeCertificate(admin,cert,reason);          getLogSession().log(admin, (X509Certificate) cert, LogEntry.MODULE_CA, new java.util.Date(), null,                        (X509Certificate) cert, LogEntry.EVENT_INFO_REVOKEDCERT,                        "Revoked certificate: " + ((X509Certificate) cert).getSubjectDN().toString() + " successfully in publisher " + pdl.getName() +".");          }catch(PublisherException pe){        	getLogSession().log(admin, (X509Certificate) cert, LogEntry.MODULE_CA, new java.util.Date(), null, (X509Certificate) cert,        			LogEntry.EVENT_ERROR_REVOKEDCERT, "Error when revoking certificate in publisher " + pdl.getName() + " : " + pe.getMessage());          }        }catch(FinderException fe){        	getLogSession().log(admin, (X509Certificate) cert, LogEntry.MODULE_CA, new java.util.Date(), null, (X509Certificate) cert,        			LogEntry.EVENT_ERROR_REVOKEDCERT, "Publisher with id " + id + " doesn't exist.");        }      }    }