QName jbiServiceName = me.getEndpoint().getServiceName();
String jbiEndpointName = me.getEndpoint().getEndpointName();
String key = DescriptorEndpointInfo.getDEIKey(
jbiServiceName, jbiEndpointName);
DescriptorEndpointInfo dei = EndpointRegistry.getInstance().
getWSDLEndpts().get(key);
QName actualServiceName = dei !=null ? dei.getServiceName() : jbiServiceName;
String actualEndpointName = dei != null ? dei.getEndpointName() : jbiEndpointName;
ServiceEngineEndpoint seEndpoint = EndpointRegistry.getInstance().
get(actualServiceName, actualEndpointName);
if(seEndpoint.isJAXWSEndpoint()) {
return new JAXWSMessageProcessor();
} else
return new JAXRPCMessageProcessor();