// the iterator for a CopyOnWriteArrayList support
// concurrent modifications.
// We can not use the Iterator.remove method as it is not
// supported on the CopyOnWrite iterator.
for (Iterator it = endpoints.iterator(); it.hasNext();) {
AbstractServiceEndpoint se = (AbstractServiceEndpoint) it.next();
if (component.equals(se.getComponent())) {
endpoints.remove(se);
}
}
}