} catch (IOException e) {
throw ExceptionFactory.convert(e);
}
nodeMap = new NodeMapInDb(dir);
} else {
ds = new MemoryBlobStore();
}
if (nodeMap.getRootId() == null) {
NodeImpl head = new NodeImpl(nodeMap, 0);
Revision revNode = new Revision(0, 0, "", "");
head = revNode.store(head, new NodeImpl(nodeMap, 0));