private Vol checkAndInstantiateVolModel(String leavingFrom, String goingTo,
String departureDate, String arrivalDate,
String departureTime, String arrivalTime, String price,
String availableSeats) throws ParseException {
Vol vol = null;
if ( leavingFrom != null &&
goingTo != null &&
departureDate != null &&
departureTime != null &&
arrivalDate != null &&
arrivalTime != null &&
price != null &&
availableSeats != null &&
!leavingFrom.isEmpty() &&
!goingTo.isEmpty() &&
!departureDate.isEmpty() &&
!departureTime.isEmpty() &&
!arrivalDate.isEmpty() &&
!arrivalTime.isEmpty() &&
!price.isEmpty() &&
!availableSeats.isEmpty())
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
vol = new Vol(
leavingFrom,
goingTo,
sdf.parse(departureDate),
sdf.parse(arrivalDate),
departureTime,