public void wrapup() throws IllegalActionException {
try {
Iterator ports = portList().iterator();
while (ports.hasNext()) {
TypedIOPort port = (TypedIOPort) ports.next();
List insideRelationList = port.insideRelationList();
Iterator insideRelationIterator = insideRelationList.iterator();
while (insideRelationIterator.hasNext()) {
TypedIORelation relation = (TypedIORelation) insideRelationIterator
.next();
relation.setContainer(null);