// Find the node by path ...
NodeCache cache = repo.getWorkspaceCache(workspaceName);
if (NodeKey.isValidFormat(identifier)) {
NodeKey key = new NodeKey(identifier);
CachedNode node = cache.getNode(key);
if (node != null && nodeFilter.includeNode(node, cache)) {
return NodeSequence.withNodes(Collections.singleton(node), score, workspaceName);
}
}
// Try with the same source and workspace key as the root node ...
NodeKey key = cache.getRootKey().withId(identifier);