InvocationManager invManager =
Switch.getSwitch().getInvocationManager();
ComponentInvocation inv = invManager.getCurrentInvocation();
Object containerContext = inv.getContainerContext();
WebBundleDescriptor webBundle = (WebBundleDescriptor)
Switch.getSwitch().getDescriptorFor(containerContext);
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
servletName = servletConfig.getServletName();
WebComponentDescriptor webComponent =
webBundle.getWebComponentByCanonicalName(servletName);
if( webComponent != null ) {
WebServicesDescriptor webServices = webBundle.getWebServices();
Collection endpoints =
webServices.getEndpointsImplementedBy(webComponent);
// Only 1 endpoint per servlet is supported, even though
// data structure implies otherwise.
endpoint_ = (WebServiceEndpoint) endpoints.iterator().next();