public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) {
RegistryComponent[] components = this.registry.getComponents();
for (int i = 0; i < components.length; i++) {
ServiceEndpoint se = ((Component)components[i].getComponent()).resolveEndpointReference(epr);
if (se != null) {
return new DynamicEndpointImpl(components[i].getName(), se);
}
}
return null;
}