final String path = targetBucket + "|" + file.getContentId();
final InstrumentVendorType vendorType = VENDOR_TYPE_MAP.get(file.getInstrument().getModel().vendor.getName());
if (!SUPPORTED_INSTRUMENT_VENDORS.contains(vendorType)) {
LOGGER.debug("Meta data file translating for '" + file.getName() + "' won't be executed because currently '" + file.getInstrument().getName() + "' instrument is not supported");
} else {
final ParseFileResult result = translationService.parseMetaData(path, vendorType);
if (!StringUtils.isBlank(result.errorMessage)) {
LOGGER.error(result.errorMessage);
file.setInvalid(true);
notifier.invalidFileUploaded(file.getOwner().getId(), file.getId());
} else {