chain.add(il);
if (endpoint instanceof JaxWsEndpointImpl) {
Binding jaxwsBinding = ((JaxWsEndpointImpl)endpoint).getJaxwsBinding();
if (endpoint.getBinding() instanceof SoapBinding) {
chain.add(new DispatchSOAPHandlerInterceptor(jaxwsBinding));
}
DispatchLogicalHandlerInterceptor slhi
= new DispatchLogicalHandlerInterceptor(jaxwsBinding, Phase.USER_LOGICAL);
chain.add(slhi);
}