private HavingOperation extractOperation(Matcher query) throws BadHavingException {
  String operationName=query.group(2);
  try {
    return HavingOperation.fromString(operationName);
  }
 catch (  IllegalArgumentException ignored) {
    LOG.debug(HAVING_OPERATOR_INVALID.logFormat(operationName));
    throw new BadHavingException(HAVING_OPERATOR_INVALID.format(operationName));
  }
}

private HavingOperation extractOperation ( Matcher query ) throws BadHavingException { String operationName = query . group ( 2 ) ; try { return HavingOperation . fromString ( operationName ) ; } catch ( IllegalArgumentException ignored ) { LOG . debug ( HAVING_OPERATOR_INVALID . logFormat ( operationName ) ) ; throw new BadHavingException ( HAVING_OPERATOR_INVALID . format ( operationName ) ) ; } }
extracts the operation to be performed by the having query .
