ActivationSpec activationSpec = exchange.getActivationSpec();
if (activationSpec != null) {
throwException = activationSpec.isFailIfNoDestinationEndpoint();
}
if (throwException) {
throw new MessagingException("Could not find route for exchange: " + exchange + " for service: " + exchange.getService() + " and interface: "
+ exchange.getInterfaceName());
} else if (exchange.getMirror().getSyncState() == MessageExchangeImpl.SYNC_STATE_SYNC_SENT) {
exchange.handleAccept();
ComponentContextImpl ctx = (ComponentContextImpl) getSubscriptionManager().getContext();
exchange.setDestinationId(ctx.getComponentNameSpace());