}
}
private void addOrMergeBackLtrbIndex(Ref ref) {
final RefAddr refAddr = new RefAddr(ref);
final Ref refX = _ltrbIndex.get(refAddr);
if (refX == null)
_ltrbIndex.put(refAddr, ref);
else {
final Set<Ref> dependents = ref.getDependents();
refX.getDependents().addAll(dependents);
for (Ref dependent : dependents) {
final Set<Ref> depprecendents = dependent.getPrecedents();
depprecendents.remove(ref);
depprecendents.add(refX);
}
final Set<Ref> precedents = ref.getPrecedents();
refX.getPrecedents().addAll(precedents);
for (Ref precedent : precedents) {
final Set<Ref> predependents = precedent.getDependents();
predependents.remove(ref);
predependents.add(refX);
}