}
protected boolean exceedsThreshold(Threshold aThreshold, String aThresholdToCheck,
String endpoint, AnalysisEngineController controller) {
if (aThreshold != null) {
Monitor monitor = controller.getMonitor();
Statistic statistic = null;
if ((statistic = monitor.getStatistic(endpoint, aThresholdToCheck)) == null) {
statistic = new LongNumericStatistic(aThresholdToCheck);
monitor.addStatistic(endpoint, statistic);
}
if (Monitor.GetMetaErrorRetryCount.equals(aThresholdToCheck)
|| Monitor.ProcessErrorRetryCount.equals(aThresholdToCheck)) {
return aThreshold.maxRetriesExceeded(((LongNumericStatistic) statistic).getValue());
} else {