class DataSetLoaderProvider implements LoaderProvider<IDataSet> {

    @Override
    public DataSetLoader<IDataSet> csvLoader() {
        return (final File path) -> {
            try {
                return defineReplaceableExpressions(new CsvDataSet(path));
            } catch (final DataSetException e) {
                throw new IOException(e);
            }
        };
    }

}