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());