* @return the ComponentConnector
*/
public ComponentConnector getComponentConnector(QName interfaceName) {
ComponentConnector result = null;
for (Iterator i = getInternalEndpoints().iterator();i.hasNext();) {
InternalEndpoint endpoint = (InternalEndpoint) i.next();
QName[] interfaces = endpoint.getInterfaces();
if (interfaces != null) {
if (interfaceName != null) {
for (int k = 0;k < interfaces.length;k++) {
QName qn = interfaces[k];
if (qn != null && qn.equals(interfaceName)) {
result = componentRegistry.getComponentConnector(endpoint.getComponentNameSpace());
break;
}
}
}
}