throw new JBIException("Component-specific endpoints can not be used for routing: should be an internal or dynamic endpoint.");
}
}
// get the context which created the exchange
ComponentContextImpl context = exchange.getSourceContext();
if (theEndpoint == null) {
QName serviceName = exchange.getService();
QName interfaceName = exchange.getInterfaceName();
// check in order, ServiceName then InterfaceName