Binding b = null;
if (unknownEndpointHandler != null) {
b = unknownEndpointHandler.handleUnknownEndpoint(endpointReference);
}
if (b != null) {
Endpoint matchedEndpoint = new RuntimeEndpointImpl(extensionPoints);
matchedEndpoint.setBinding(b);
matchedEndpoint.setRemote(true);
endpointReference.setTargetEndpoint(matchedEndpoint);
endpointReference.setBinding(b);
endpointReference.setUnresolved(false);
endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_FOUND_AND_MATCHED);
matchAudit.append("Match because the UnknownEndpointHandler provided a binding: " + b.getType() + " uri: " + b.getURI());