private DgOagFlight createFlight(
     String flightDesignator, double departureInSec, double duration, String route, DgOagLine l) {
   DgOagFlight dgf = new DgOagFlight(flightDesignator);
   dgf.setAircraftType(l.getAircraftType());
   dgf.setCarrier(l.getCarrier());
   dgf.setDepartureTime(departureInSec);
   dgf.setDuration(duration);
   dgf.setSeatsAvailable(l.getSeatsAvailable());
   dgf.setRoute(route);
   dgf.setDistanceKm(l.getFlightDistanceKm());
   dgf.setOriginCode(l.getOriginAirport());
   dgf.setDestinationCode(l.getDestinationAirport());
   return dgf;
 }
 private boolean hasOtherBadData(DgOagLine line) {
   // && seatsAvail > 0 // filter for flights with 1 PAX or more only
   // && !originAirport.equalsIgnoreCase(destinationAirport)
   // && (stops < 1) && (duration > 0.) && (fullRouting.length() <= 6)) {
   if (line.getSeatsAvailable() <= 0
       || line.getOriginAirport().equalsIgnoreCase(line.getDestinationAirport())
       || line.getStops() > 1
       || line.getFlightDurationSeconds() <= 0.0
       || line.getFullRouting().length() > 6) {
     this.ignoredDueToBadData++;
     return true;
   }
   return false;
 }