System.err.println(">> " + x);
System.err.println(x);
    public void initDb() throws DatabaseException {        ITransaction txn = null;        try {            txn = db.beginTransaction();            try {                idgen = db.getIDGenerator(txn);                if (idgen.getValue() < idBaseValue) {                    idgen.setValue(idBaseValue);                    db.saveIDGenerator(txn, idgen);                }            } catch (ObjectNotFoundException notfound) {                // will start with idBaseValue+1                idgen = new IDGenerator(idBaseValue);                db.saveIDGenerator(txn, idgen);            }            // check if we need to set the id generator to a base value            Node node = null;            try {                node = (Node) db.getNode(txn, "0");                node.nmgr = safe;            } catch (ObjectNotFoundException notfound) {                node = new Node("root", "0", "root", safe);                node.setDbMapping(app.getDbMapping("root"));                db.saveNode(txn, node.getID(), node);                registerNode(node); // register node with nodemanager cache            }            try {                node = (Node) db.getNode(txn, "1");                node.nmgr = safe;            } catch (ObjectNotFoundException notfound) {                node = new Node("users", "1", null, safe);                node.setDbMapping(app.getDbMapping("__userroot__"));                db.saveNode(txn, node.getID(), node);                registerNode(node); // register node with nodemanager cache            }            db.commitTransaction(txn);        } catch (Exception x) {            System.err.println(">> " + x);            x.printStackTrace();            try {                db.abortTransaction(txn);            } catch (Exception ignore) {            }            throw (new DatabaseException("Error initializing db"));        }    }