if (format.isSupportsMultipleRoutes()) {
List<BaseRoute> routes = exportSelectedRoute ? asList(route) : formatAndRoutesModel.getRoutes();
new NavigationFormatParser().write(routes, (MultipleRoutesFormat) format, files[0]);
} else {
boolean duplicateFirstPosition = preferences.getBoolean(DUPLICATE_FIRST_POSITION_PREFERENCE, true);
ParserCallback parserCallback = new ParserCallback() {
public void preprocess(BaseRoute route, NavigationFormat format) {
if (format instanceof GarminFlightPlanFormat) {
GarminFlightPlanRoute garminFlightPlanRoute = (GarminFlightPlanRoute) route;
completeGarminFlightPlan(garminFlightPlanRoute);
}