if (!referenceLinkGraph.getAllDetachedSet().contains(
dataRecordIdentifier)) {
return false;// NOPMD
}
for (DataRecordIdentifierRBTNode node : knownCandidate) {
DataRecordIdentifier candidate;
try {
candidate = node.getElement();
} catch (RBTException exception) {
throw new TestException(exception);
}
if (!referenceLinkGraph.isInAttachedToRootSet(candidate)) {
final Set<DataRecordIdentifier> set = referenceLinkGraph
.getDetachedToRootSet(candidate);
if (set != null && set.contains(dataRecordIdentifier)) {
return true;// NOPMD
}
}
}
for (DataRecordIdentifierRBTNode node : knownToGarbage) {
DataRecordIdentifier toGarbage;
try {
toGarbage = node.getElement();
} catch (RBTException exception) {
throw new TestException(exception);
}