CoreMessages.schemeCannotChangeForRouter(ep.getEndpointURI().getScheme(),
newUri.getScheme()), event, ep);
}
newUri.initialise();
return new DynamicURIOutboundEndpoint(ep, newUri);
}
catch (EndpointException e)
{
throw new CouldNotRouteOutboundMessageException(
CoreMessages.templateCausedMalformedEndpoint(uri, newUriString), event, ep, e);