public DataSource createDataSource(String tableName, String tableAlias, String driverName) throws DataSourceCreationException {
((GDBMSDriver) driver).setDataSourceFactory(getDataSourceFactory());
DBSource dbs = new DBSource(null, 0, null, null, null, null, null);
DBTableDataSourceAdapter adapter = new DBTableDataSourceAdapter(
tableName, tableAlias, dbs, (AlphanumericDBDriver) driver);
adapter.setDataSourceFactory(getDataSourceFactory());
getDataSourceFactory().getDelegatingStrategy().registerView(tableName,
dbs.getTableName());
return adapter;