private static boolean formQueryTour(Criteria crit, List params, StringBuilder sb, StringBuilder sbw) {
        List list = new ArrayList<>();
        StringBuilder str = new StringBuilder();
        String qu = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_TOUR_DATE_FROM, DB_TOUR_DATE, crit, list, str, AND, FROM);
                Appender.append(DAO_TOUR_DATE_TO, DB_TOUR_DATE, crit, list, str, AND, TO);
                Appender.append(DAO_TOUR_DAYS_FROM, DB_TOUR_DAYS_COUNT, crit, list, str, AND, FROM);
                Appender.append(DAO_TOUR_DAYS_TO, DB_TOUR_DAYS_COUNT, crit, list, str, AND, TO);
                Appender.append(DAO_TOUR_PRICE_FROM, DB_TOUR_PRICE, crit, list, str, AND, FROM);
                Appender.append(DAO_TOUR_PRICE_TO, DB_TOUR_PRICE, crit, list, str, AND, TO);
                Appender.append(DAO_TOUR_DISCOUNT_FROM, DB_TOUR_DISCOUNT, crit, list, str, AND, FROM);
                Appender.append(DAO_TOUR_FREE_SEATS_FROM, DB_TOUR_FREE_SEATS, crit, list, str, AND, FROM);
                Appender.append(DAO_TOUR_STATUS, "t." + DB_TOUR_STATUS, crit, list, str, AND);
                return str.toString();
            }
        }.mapQuery();
        sb.append(LOAD_QUERY_TOUR);
        sbw.append(WHERE);
        if (!list.isEmpty()) {
            params.addAll(list);
            sbw.append(qu);
            return true;
        } else {
            return false;
        }
    }