Endpoint targetEndpoint = endpointReference.getTargetEndpoint();
for (Object v : map.values()) {
Endpoint endpoint = (Endpoint)v;
// TODO: implement more complete matching
if (matches(targetEndpoint.getURI(), endpoint.getURI())) {
MapEntry entry = map.getInternal(endpoint.getURI());
if (!entry.isPrimary()) {
endpoint.setExtensionPointRegistry(registry);
}
foundEndpoints.add(endpoint);
logger.info("EndpointRegistry: Found endpoint with matching service - " + endpoint);
}