private void preCacheCharts(List<Long> translatedFileIds) {
LOG.debug("Pre-caching charts for IDs " + translatedFileIds);
try {
final Long[] idsArray = translatedFileIds.toArray(new Long[translatedFileIds.size()]);
final SpectrumType[] spectrumTypes = {SpectrumType.TIC_CHROMATOGRAM, SpectrumType.TIC_SPECTRUM, SpectrumType.BPI_SPECTRUM, SpectrumType.BPI_CHROMATOGRAM};
final PreCachingResult preCachingResult = translationService.preCacheChart(idsArray, 100, 100, spectrumTypes, -1, -1, -1, -1);
LOG.debug(" * Pre-caching result received. Errors = " + preCachingResult.getError());
} catch (Exception e) {
LOG.warn("Error pre-caching charts.", e);
}
}