import com.haulmont.cuba.core.entity.FileDescriptor
import com.haulmont.cuba.core.app.FileStorageAPI
import java.io.InputStream
import java.io.InputStreamReader
import java.io.ByteArrayOutputStream
import org.apache.commons.io.IOUtils
import java.nio.charset.StandardCharsets;
import com.opencsv.CSVReader;
import org.apache.commons.collections.CollectionUtils
import java.util.stream.Collectors;
FileStorageAPI fileStorageAPI=AppBeans.get(FileStorageAPI.NAME);
String id='e068eda2-d8df-5f43-1b30-7f86de1a550c'
FileDescriptor fd = dataManager.load(FileDescriptor.class)
.id(UuidProvider.fromString(id))
.view(View.MINIMAL)
.optional().orElse(null);
if(fd == null){throw new RuntimeException("fileNotFound")}
InputStream inputStream=fileStorageAPI.openStream(fd)
CSVReader reader = new CSVReader(new InputStreamReader(inputStream, "UTF-8"));
List<String> listInn = reader.readAll().stream()
.map{e->e[0]}.collect(Collectors.toList())