// Helper methods
private void checkMethodStats(String path) {
APIStatisticsMBean statistics = apiMonitor.getStatistics();
Iterator<? extends InvocationStatistics> itr = statistics.getInvocationStatistics().iterator();
InvocationStatistics methodStats = null;
while (itr.hasNext()) {
InvocationStatistics s = itr.next();
if (s.getName().equals(path)) {
methodStats = s;
break;
}
}