protected List<X509CRLEntryWrapper> getNewSerialsToAppendAndSetThemConsumed() {
List<X509CRLEntryWrapper> entries = Util.newList();
List<CertificateSerial> serials =
this.certificateSerialCurator.retrieveTobeCollectedSerials();
for (CertificateSerial cs : serials) {
entries.add(new X509CRLEntryWrapper(cs.getSerial(),
new Date()));
cs.setCollected(true);
}
if (log.isTraceEnabled()) {
log.trace("Added #" + serials.size() + " new entries to the CRL");