for (Object replacementRelationObject : replacementComponentPort
.insideRelationList()) {
Relation replacementRelation = (Relation) replacementRelationObject;
Relation hostRelation = (Relation) _replacementToHost
.get(replacementRelation);
if (!hostComponentPort.insideRelationList().contains(
hostRelation)) {
// There is no link between hostPort and hostRelation,
// so create a new link.
NamedObj hostContainer = hostRelation.getContainer();
String moml = _getLinkMoML(host, hostRelation);