From Node, you can get the link property. And then call getValues ββto the reference values. From there, just take the first one. Sort of
public String getFirstReference(Node node) throws RepositoryException { Property references = node.getProperty("references"); Value[] values = references.getValues(); return values[0].getString(); }
diffa source share