*
* @param exchange
* @return the EndpointChooser
*/
protected EndpointChooser getInterfaceChooser(MessageExchangeImpl exchange) {
EndpointChooser chooser = null;
ActivationSpec activationSpec = exchange.getActivationSpec();
if (activationSpec != null) {
chooser = activationSpec.getInterfaceChooser();
}
if (chooser == null) {