final URL url = new URL( "http://" + XmlUtils.getSimpleElementText( databaseElement, "baseURI" ) + "/" + XmlUtils.getSimpleElementText( databaseElement, "name" ) ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
database = new TaminoDatabase( url, username, password, collection );
} else {
final URI uri = new URI( "xmldb:exist://" +XmlUtils.getSimpleElementText(databaseElement, "baseURI")
+":8080/exist/xmlrpc/db");
database = new ExistDatabase(uri, username, password, collection);
}
databaseMap.put( modelName, database );
}
return database;