while (i.hasNext()) {
dep = (Dependency)i.next();
dep.fireDeleteEvent(this);
dep.replace(realTask, true);
try {
dep.testValid(false);
} catch (InvalidAssociationException e) {
dep.setDisabled(true);
DependencyService.warnCircularCrossProjectLinkMessage(dep.getPredecessor(), dep.getSuccessor());
}
realTask.getSuccessorList().add(dep);