protected function getIdentifier($path, $properties)
{
if (isset($this->nodeIdentifiers[$path])) {
return $this->nodeIdentifiers[$path];
}
if (isset($properties['jcr:uuid'])) {
return $properties['jcr:uuid']->getValue();
}
// we always generate a uuid, even for non-referenceable nodes that have no automatic uuid
return $this->generateUuid();
}