target.getDataStore());
copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
copier.copy(RepositoryImpl.ROOT_NODE_ID);
// Copy all the active open-scoped locks
LockManagerImpl sourceLockManager =
source.getRepository().getLockManager(name);
LockManagerImpl targetLockManager =
target.getRepository().getLockManager(name);
targetLockManager.copyOpenScopedLocksFrom(sourceLockManager);
}
}