// will start with idBaseValue+1
idgen = new XmlIDGenerator(idBaseValue);
}
// check if we need to set the id generator to a base value
Node node = null;
try {
getNode(txn, "0");
} catch (ObjectNotFoundException notfound) {
node = new Node("root", "0", "Root", nmgr.safe);
node.setDbMapping(app.getDbMapping("root"));
insertNode(txn, node.getID(), node);
// register node with nodemanager cache
// nmgr.registerNode(node);
}
try {
getNode(txn, "1");
} catch (ObjectNotFoundException notfound) {
node = new Node("users", "1", null, nmgr.safe);
node.setDbMapping(app.getDbMapping("__userroot__"));
insertNode(txn, node.getID(), node);
// register node with nodemanager cache
// nmgr.registerNode(node);
}
commitTransaction(txn);