private void onExhausted(Exchange exchange) throws Exception { LOGGER.info("{} exhausted maxRetries={}", endpoint.getEndpointUri(), endpoint.getMaxTries()); if (endpoint.getOnExhausted() != null) { endpoint.getOnExhausted().process(exchange); } }