class KieSQLDataSourceLocator extends SQLDataSourceLocatorCDI {

    @Override
    public List< SQLDataSourceDef > list( ) {
        Collection<DataSourceDefInfo> dataSourceDefInfos = queryService.findGlobalDataSources( true );
        List<SQLDataSourceDef> result = new ArrayList<>( );
        for ( DataSourceDefInfo dataSourceDefInfo : dataSourceDefInfos ) {
            result.add( new SQLDataSourceDef( dataSourceDefInfo.getUuid(), dataSourceDefInfo.getName() ) );
        }
        return result;
    }

    @Inject public  KieSQLDataSourceLocator( DataSourceDefQueryService queryService,
                                    DataSourceRuntimeManager runtimeManager );

}