public EndpointResolverImpl(ExtensionPointRegistry extensionPoints,
Endpoint endpoint) {
this.endpoint = endpoint;
EndpointResolverFactoryExtensionPoint resolverFactories =
extensionPoints.getExtensionPoint(EndpointResolverFactoryExtensionPoint.class);
for (Binding binding : endpoint.getCandidateBindings()){
EndpointResolverFactory resolverFactory = resolverFactories.getEndpointResolverFactory(binding.getClass());
// if the binding in question has a endpoint resolver factory they try and
// create an endpoint resolver
if (resolverFactory != null){
EndpointResolver resolver = resolverFactory.createEndpointResolver(endpoint, binding);