private Predicate[] getSearchPredicates(Root<Passenger> root)
   {

      CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
      List<Predicate> predicatesList = new ArrayList<Predicate>();

      String name = this.example.getName();
      if (name != null && !"".equals(name))
      {
         predicatesList.add(builder.like(root.<String> get("name"), '%' + name + '%'));
      }
      String mobileNumber = this.example.getMobileNumber();
      if (mobileNumber != null && !"".equals(mobileNumber))
      {
         predicatesList.add(builder.like(root.<String> get("mobileNumber"), '%' + mobileNumber + '%'));
      }
      String email = this.example.getEmail();
      if (email != null && !"".equals(email))
      {
         predicatesList.add(builder.like(root.<String> get("email"), '%' + email + '%'));
      }
      String password = this.example.getPassword();
      if (password != null && !"".equals(password))
      {
         predicatesList.add(builder.like(root.<String> get("password"), '%' + password + '%'));
      }

      return predicatesList.toArray(new Predicate[predicatesList.size()]);
   }