public void registerDatabase(String name, String title, String path, URL resource, DatabaseSchema databaseSchema, User user, int authenticationMode, int autoSchemaChanges)
throws NumberFormatException, WikiException, SQLException {
Connection con = _connector.getConnection();
int wikiID = -1;
SQLVersionIndex versionIndex = new SQLVersionIndex(con, name, users(), true);
CreateDatabaseRecord r = new CreateDatabaseRecord(name, title, authenticationMode, autoSchemaChanges, databaseSchema, user);
con.setAutoCommit(false);
con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
try {