try {
// Bootstrap from the database itself... This is accomplished
// by intercepting the setConfig call and using a Configuration
// retrieved from the database instead of the standard config
Collection col = sysCol.getCollection(SystemCollection.CONFIGS);
DOMAdapter domAdapter = new DOMAdapter(col);
Document colDoc = domAdapter.getDocument(tx, COLKEY);
if ( colDoc == null ) {
colDoc = DOMHelper.newDocument();
Element root = colDoc.createElement(DATABASE);
root.setAttribute(NAME, name);
colDoc.appendChild(root);
domAdapter.setDocument(tx, COLKEY, colDoc);
}
super.setConfig(new Configuration(colDoc));
}
catch ( Throwable e ) {