public FileImporter getFileImporter(File file) {
FileObject fileObject = FileUtil.toFileObject(file);
fileObject = getArchivedFile(fileObject); //Unzip and return content file
FileImporterBuilder builder = getMatchingImporter(fileObject);
if (fileObject != null && builder != null) {
FileImporter fi = builder.buildImporter();
if (fileObject.getPath().startsWith(System.getProperty("java.io.tmpdir"))) {
try {
fileObject.delete();
} catch (IOException ex) {
Exceptions.printStackTrace(ex);