code: private boolean validateBucket(boolean left, boolean right, String logicalOperation)
      {
          logger.debug("Logical opertation " + logicalOperation + " found in having clause");
          if (Expression.AND.equalsIgnoreCase(logicalOperation))
          {
              return left && right;
          }
          else if (Expression.OR.equalsIgnoreCase(logicalOperation))
          {
              return left || right;
          }
          else
          {
              logger.error(logicalOperation + " in having clause is not supported in Kundera");
              throw new UnsupportedOperationException(logicalOperation + " in having clause is not supported in Kundera");
          }
      }
docs: Validate bucket.
  
  @param left
  the left
  @param right
  the right
  @param logicalOperation
  the logical operation
  @return true, if successful