consumerDeclaration.invoke(delegate);
notifyAfterConsumerRecovery(consumer);
} catch (Exception e) {
log.error("Failed to recover consumer-{} via {}", entry.getKey(), this, e);
notifyConsumerRecoveryFailure(consumer, e);
ShutdownSignalException sse = Exceptions.extractCause(e, ShutdownSignalException.class);
if (sse != null) {
if (!Exceptions.isConnectionClosure(sse))
it.remove();
throw e;
}