uuidsInFromBranch.add(original.getUuid()); // uuidsInFromBranch does not include the UUID of the original
for (UUID uuid : uuidsInFromBranch) {
if (null != (existing = newWorkspace.getNode(uuid))) {
NamespaceRegistry namespaces = context.getNamespaceRegistry();
String path = newWorkspace.pathFor(pathFactory, existing).getString(namespaces);
throw new UuidAlreadyExistsException(repository.getSourceName(), uuid, path, newWorkspace.getName());
}
}
}
if (desiredSegment != null) {