public static final Criterion or(Criterion one,Criterion two){
  final List<Criterion> criteria=new ArrayList<Criterion>();
  criteria.add(one);
  criteria.add(two);
  return new ConjunctionCriterion(Conjunction.OR,criteria);
}

public static final Criterion or ( Criterion one , Criterion two ) { final List < Criterion > criteria = new ArrayList < Criterion > ( ) ; criteria . add ( one ) ; criteria . add ( two ) ; return new ConjunctionCriterion ( Conjunction . OR , criteria ) ; }
creates a filter composing the two different criteria .
