/*
* Get the appropriate EndpointDispatcher for a given service endpoint.
*/
protected EndpointDispatcher getEndpointDispatcher(Class serviceImplClass, Object serviceInstance)
throws Exception {
EndpointDispatcherFactory factory =
(EndpointDispatcherFactory)FactoryRegistry.getFactory(EndpointDispatcherFactory.class);
return factory.createEndpointDispatcher(serviceImplClass, serviceInstance);
}