_workspace.getWriteAccess();
// Have to copy _portList to avoid corrupting the iterator.
// NOTE: Could use a ListIterator here instead.
NamedList portListCopy = new NamedList(_portList);
Iterator ports = portListCopy.elementList().iterator();
while (ports.hasNext()) {
Port port = (Port) ports.next();
try {