final List<Long> usedInExperiments = fileIds.isEmpty() ? Collections.<Long>emptyList() : fileRepository.usedInExperiments(fileIds);
return filtered.transform(new Function<FileMetaData, DashboardReader.FileLine>() {
@Override
public DashboardReader.FileLine apply(FileMetaData input) {
AccessLevel level = validator.getAccessLevel(input);
final Instrument instrument = input.getInstrument();
final DashboardReader.FileColumns columns = transformColumns(input);
return new DashboardReader.FileLine(input.getId(),
input.getName(), instrument.getId(),
input.getSpecie() == null ? null : input.getSpecie().getId(),