code: public void racRent() {
  		pos = pos - 1;
  		String userName = CarSearch.getLastSearchParams()[0];
  		String pickupDate = CarSearch.getLastSearchParams()[1];
  		String returnDate = CarSearch.getLastSearchParams()[2];
  		this.searcher.search(userName, pickupDate, returnDate);
  		if (searcher!=null && searcher.getCars()!= null && pos < searcher.getCars().size() && searcher.getCars().get(pos) != null) {
  			RESStatusType resStatus = reserver.reserveCar(searcher.getCustomer()
  															, searcher.getCars().get(pos)
  															, pickupDate
  															, returnDate);
  			ConfirmationType confirm = reserver.getConfirmation(resStatus
  															, searcher.getCustomer()
  															, searcher.getCars().get(pos)
  															, pickupDate
  															, returnDate);
  
  			RESCarType car = confirm.getCar();
  			CustomerDetailsType customer = confirm.getCustomer();
  			
  			System.out.println(MessageFormat.format(CONFIRMATION
  					, confirm.getDescription()
  					, confirm.getReservationId()
  					, customer.getName()
  					, customer.getEmail()
  					, customer.getCity()
  					, customer.getStatus()
  					, car.getBrand()
  					, car.getDesignModel()
  					, confirm.getFromDate()
  					, confirm.getToDate()
  					, padl(car.getRateDay(), 10)
  					, padl(car.getRateWeekend(), 10)
  					, padl(confirm.getCreditPoints().toString(), 7)));
  		} else {
  			System.out.println("Invalid selection: " + (pos+1)); //$NON-NLS-1$
  		}
  	}
docs: Rent a car available in the last serach result
  @param intp - the command interpreter instance