.hasNext();) {
TypedIORelation relation = (TypedIORelation) relations.next();
// Determine the types that the relation is connected to.
Map typeMap = new HashMap();
List destinationPortList = relation.linkedDestinationPortList();
for (Iterator destinationPorts = destinationPortList.iterator(); destinationPorts
.hasNext();) {
TypedIOPort port = (TypedIOPort) destinationPorts.next();
ptolemy.data.type.Type type = port.getType();