public void initCarbonDSService(DataSourceInformationRepositoryService cdService) {
this.dataSource = this.createDataSource(cdService);
}
private DataSource createDataSource(DataSourceInformationRepositoryService cdService) {
DataSourceInformationRepository datasourceRepo = cdService.
getDataSourceInformationRepository();
DataSourceRepositoryHolder dataSourceHelper = DataSourceRepositoryHolder.getInstance();
dataSourceHelper.init(datasourceRepo, null);
return dataSourceHelper.getDataSourceRepositoryManager().getDataSource(
this.getDataSourceName());