bvahdat commented on pull request #5543: URL: https://github.com/apache/camel/pull/5543#issuecomment-839536116
The idea is to avoid custom logic such as the following when a `org.apache.camel.support.AbstractExchange` object is created using a parent one: ``` String fromEndpointUri = null; if (message.getExchange().getFromEndpoint() != null) { fromEndpointUri = message.getExchange().getFromEndpoint().getEndpointUri(); } else { Route fromRoute = message.getExchange().getContext().getRoute(message.getExchange().getFromRouteId()); if (fromRoute != null) { fromEndpointUri = fromRoute.getEndpoint().getEndpointUri(); } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org