private static boolean formQueryHotel(Criteria crit, List params, StringBuilder sb, StringBuilder sbw, Boolean f2345, Boolean f5) {
        List list = new ArrayList<>();
        StringBuilder str = new StringBuilder(" ( ");
        String qu = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_HOTEL_STARS, DB_HOTEL_STARS, crit, list, str, OR);
                return str.toString() + " ) ";
            }
        }.mapQuery();

        if (!list.isEmpty()) {
            if (!f2345) {
                sb.append(LOAD_QUERY_DIRECT);
            }
            if (!f5) {
                sb.append(LOAD_QUERY_STAY);
            }
            sb.append(LOAD_QUERY_HOTEL);
            if (!params.isEmpty()) {
                sbw.append(AND);
            }
            sbw.append(qu);
            params.addAll(list);
            return true;
        } else {
            return false;
        }
    }