title: QueryDSL: convert list of BooleanExpression to Predicate
body: <p>I'm trying to create a query that would depend on number of boolean parameters. The function that creates the predicate looks like this:</p>
  
  <pre><code>Predicate createPredicate(Boolean param1, Boolean param2) {
      List&lt;BooleanExpression&gt; booleanExpressions = new List&lt;&gt;();        
      if (param1)
          booleanExpressions.add(/** expression 1 **/);
      if (param2)
          booleanExpressions.add(/** expression 2 **/);
      convertExpressionsToPredicate(booleanExpressions);
  }
  </code></pre>
  
  <p>The problem is the <code>convertExpressionsToPredicate</code> function. Is there any special method in querydsl to join list of expressions into one predicate using the <code>or</code> operator?</p>
  
  <p>The solution I'm looking for should convert this:</p>
  
  <pre><code>List&lt;BooleanExpression&gt; booleanExpressions = List(exp1, exp2, exp3);
  </code></pre>
  
  <p>into:</p>
  
  <pre><code>Predicate p = exp1.or(exp2).or(exp3)
  </code></pre>