if (tempFile == null) {
throw new EvasionException("No tempFile found for import");
}
AbstractFileParser parser;
if (GeonameParser.FORMAT.equalsIgnoreCase(format)) {
parser = new GeonameParser(tempFile);
} else if (GISParser.FORMAT.equalsIgnoreCase(format)) {
parser = new GISParser(tempFile);
} else {
throw new ImportFormatException("Parser not found");
}