@NotNull final WSEndpointDescriptor wsEndpointDescriptor) throws Exception {
if (wsEndpointDescriptor.isEJB()) {
final EjbRuntimeEndpointInfo ejbEndPtInfo = (EjbRuntimeEndpointInfo) V3Module.getWSEjbEndpointRegistry().
getEjbWebServiceEndpoint(wsEndpointDescriptor.getURI(), "POST", null);
final AdapterInvocationInfo adapterInfo =
(AdapterInvocationInfo) ejbEndPtInfo.prepareInvocation(true);
return new Ejb109Adapter(wsEndpointDescriptor.getWSServiceName().toString(),
wsPath, adapterInfo.getAdapter().getEndpoint(),
new ServletFakeArtifactSet(wsEndpointDescriptor.getRequestURL(), wsEndpointDescriptor.getUrlPattern()),
ejbEndPtInfo, adapterInfo);