public static void selectPlanesByFuelConsumption(Airline airline) {

		logger.info("Starting planes selection... ");
		
		while (true) {

			logger.info("");
			logger.info("Enter Fuel Consumption (press space and enter to exit): ");

			Scanner scanIn = new Scanner(System.in);
			String s = scanIn.nextLine();

			if (" ".equals(s))
				break;

			try {

				int fuel = 0;
				
				try {
					fuel = Integer.parseInt(s);	
				} catch (Exception e) {
					throw new WrongInputException(e);
				}
				
				boolean found = false;

				for (Plane plane : airline.getPlanes()) {
					if (fuel < plane.getFuelConsumtion()) {
						found = true;
						logger.info("Your match is " + plane.getName()
								+ "; fuel consumption: "
								+ plane.getFuelConsumtion());
					}
				}

				if (!found) {
					throw new NoFlightFoundException();
				}

			} catch (NoFlightFoundException e) {
				logger.info("No planes found matching your criteria. Try again.");
			} catch (WrongInputException e) {
				logger.error("Incorrect input, try again", e);
			}
		}

		logger.info("Plane selection finished.");
	}