RepositorySource repositorySource = new CsvRepositorySource
try { ... } finally { repositorySource.close(); }