/** <p>Performs the database collection and invokes
* {@link DatabaseManager#getCollection(String)}.</p>
*/
protected Collection getXmlDbCollection()
throws XMLDBException, IllegalAccessException, InstantiationException {
Database database = (Database) getDriverClass().newInstance();
if (databaseProperties != null) {
for (Iterator iter = databaseProperties.entrySet().iterator(); iter.hasNext(); ) {
Map.Entry entry = (Map.Entry) iter.next();
database.setProperty((String) entry.getKey(), (String) entry.getValue());
}
}
DatabaseManager.registerDatabase(database);
return DatabaseManager.getCollection(getCollection());
}