New method encapsulateOr in FilterBuilder.