throw new Exception("Invalid state. A file must be present for submitted_inline");
}
// Download file
File outputFile = File.createTempFile("inline", "", mediaDir);
conversionContext.downloadFile(attachmentName, outputFile);
// Create an original structure to point to the file in the
// media dir. This way, when we go to "submitted" state, we will
// be ready.
OriginalFileDescriptor originalDescription = attDescription.getOriginalFileDescription();