CounterRepository counterRepo = bus.getExtension(CounterRepository.class);
if (counterRepo == null) {
return false;
}
ObjectName serviceCounterName = getServiceCounterName(ex);
ResponseTimeCounter serviceCounter = (ResponseTimeCounter)counterRepo.getCounter(serviceCounterName);
//If serviceCounter is null, we need to wait ResponseTimeOutInterceptor to create it , hence set to true
if (serviceCounter == null || serviceCounter.isEnabled()) {
return true;
}
return false;
}