assert referenceType == PropertyType.REFERENCE || referenceType == PropertyType.WEAKREFERENCE;
if (!this.isReferenceable()) {
// This node is not referenceable, so it cannot have any references to it ...
return JcrEmptyPropertyIterator.INSTANCE;
}
ReferenceType refType = referenceType == PropertyType.REFERENCE ? ReferenceType.STRONG : ReferenceType.WEAK;
NodeIterator iter = referringNodes(refType);
if (!iter.hasNext()) {
return JcrEmptyPropertyIterator.INSTANCE;
}
// Use the identifier, not the UUID (since the getUUID() method just calls the getIdentifier() method) ...