class DataSourceCfgUtil {

    public static List<DataSourceCfg> getDataSourceCfgList() {
        List<DataSourceCfg> dataSourceCfgList = new ArrayList<>(MAX_DATA_SOURCE_COUNT);
        for (int i = 0; i < MAX_DATA_SOURCE_COUNT; i++) {
            DataSourceCfg dataSourceCfg = getDataSourceCfg(i);
            if (dataSourceCfg == null) {
                break;
            }

            dataSourceCfgList.add(dataSourceCfg);
        }

        return dataSourceCfgList;
    }

    private  DataSourceCfgUtil();

}