Collection connectors = componentRegistry.getLocalComponentConnectors();
for (Iterator iter = connectors.iterator(); iter.hasNext();) {
LocalComponentConnector connector = (LocalComponentConnector) iter.next();
ServiceEndpoint se = connector.getComponent().resolveEndpointReference(epr);
if (se != null) {
return new DynamicEndpoint(connector.getComponentNameSpace(), se, epr);
}
}
return null;
}