while (outPorts.hasNext()) {
IOPort port = (IOPort) outPorts.next();
// FIXME: Assuming ports are either
// input or output and not both.
List sourcePortList = port.insidePortList();
//FIXME: can the list be empty?
CompositeActor container = (CompositeActor) getContainer();