private LogicalMetric extractMetric(Matcher tokenizedQuery,MetricDictionary metricDictionary) throws BadHavingException {
  String metricName=tokenizedQuery.group(1);
  LogicalMetric extractedMetric=metricDictionary.get(metricName);
  if (extractedMetric == null) {
    LOG.debug(HAVING_METRIC_UNDEFINED.logFormat(metricName));
    throw new BadHavingException(HAVING_METRIC_UNDEFINED.logFormat(metricName));
  }
  return extractedMetric;
}

private LogicalMetric extractMetric ( Matcher tokenizedQuery , MetricDictionary metricDictionary ) throws BadHavingException { String metricName = tokenizedQuery . group ( 1 ) ; LogicalMetric extractedMetric = metricDictionary . get ( metricName ) ; if ( extractedMetric == null ) { LOG . debug ( HAVING_METRIC_UNDEFINED . logFormat ( metricName ) ) ; throw new BadHavingException ( HAVING_METRIC_UNDEFINED . logFormat ( metricName ) ) ; } return extractedMetric ; }
extracts the metric to be examined from the having tokenizedquery .
