Iterator relations = model.relationList().iterator();
StringBuffer relationsMoML = new StringBuffer();
while (relations.hasNext()) {
ComponentRelation relation = (ComponentRelation) relations.next();
relationsMoML.append(relation.exportMoML());
relation.unlinkAll();
}
actor.removeAllPorts();
actor.createPorts();