// fully populated registry at run time. The "createComponent()" call here
// will do its best to parse out component/service/binding elements assuming
// that the getSCATargetParts detects that there are three "/" separated
// parts in the uri.
EndpointReference endpointRef = createEndpointRef(component, reference, binding, null, false);
Endpoint endpoint = null;
try {
getSCATargetParts(uri);
// the target uri might be an SCA target so create an endpoint
// so that the binder can test it against the fully populated
// registry
endpoint = createEndpoint(component, uri);
endpointRef.setStatus(EndpointReference.Status.WIRED_TARGET_IN_BINDING_URI);
} catch (Exception ex) {
// the target string definitely isn't an SCA target string
// so we can assume here that the user has configured a
// resolved binding
endpoint = createEndpoint(false);
endpoint.setURI(uri);
endpoint.setBinding(binding);
endpointRef.setStatus(EndpointReference.Status.RESOLVED_BINDING);
}
endpointRef.setTargetEndpoint(endpoint);
reference.getEndpointReferences().add(endpointRef);