protected void copyData(AbstractBTree newBTree, KernelContext kContext) throws ChaiDBException {
try {
this.acquire(kContext, LockManager.LOCK_READ);
newBTree.acquire(kContext, LockManager.LOCK_WRITE);
newBTree.setConverter(new NodeIdConverter());
Enumeration keys = keys(kContext);
if (keys == null) return;
while (keys.hasMoreElements()) {
Key key = (Key) keys.nextElement();
((PathBTree) newBTree).store(key, kContext);