System.out.println("Is initialized? " + GosuInitialization.isInitialized());
for (IModule module : modules) {
// TODO - AHK - This seems a bit ugly
List<IDatabase> dbs = new ArrayList<IDatabase>();
System.out.println("***** Reading module with path " + module.getSourcePath());
IDBDataSource dataSource = new DDLDBDataSource();
Map<String, DBData> dbDataMap = dataSource.getDBData(module);
for (Map.Entry<String, DBData> dbDataEntry : dbDataMap.entrySet()) {
IDatabase database = new DatabaseImpl(dbDataEntry.getKey(), dbDataEntry.getValue(), module);
// TODO - AHK - Validate things!
dbs.add(database);
_dbsByName.put(database.getNamespace(), database);