(IDBDatasourceService) PentahoSystem.get( IDBDatasourceService.class, null );
if ( datasourceService != null ) {
try {
return datasourceService.getDataSource( dataSourceName );
} catch ( DBDatasourceServiceException ex ) {
throw new DataSourceNamingException( ex );
}
}
return null;
}