for (File file : files) {
String resource = file.getName();
for(String threshKey  :thresholdMap.keySet()) {
if (log().isDebugEnabled()) {
log().debug("checkResourceDir: resource=" + resource);
<BUG>}
processThresholdForResource(file, snmpIface, date, events, thresholdMap.get(threshKey), resource);
</BUG>
}
}

for (File file : files) {
try {
checkIfDir(file, snmpThresholdNetworkInterface, date, events);
} catch (IllegalArgumentException e) {
log().info("check: Threshold checking failed for primary SNMP interface " + snmpThresholdNetworkInterface.getIpAddress() + ": " + e, e);
return THRESHOLDING_FAILED;
