@Override
public DataSource createDataSource(String tableName, String tableAlias, String driverName) throws DataSourceCreationException {
((GDBMSDriver) driver).setDataSourceFactory(getDataSourceFactory());
DBSpatialSource dbss = new DBSpatialSource(null, 0, null, null, null, null, null, null);
DBSpatialDataSourceAdapter adapter = new DBSpatialDataSourceAdapter(
tableName, tableAlias, dbss, (SpatialDBDriver) driver);
adapter.setDataSourceFactory(getDataSourceFactory());
getDataSourceFactory().getDelegatingStrategy().registerView(tableName,
dbss.getTableName());
return adapter;