protected long getPreviousValue(String name) {
   Long l = (Long) previousValues.get(name);
   return Utils.toLong(l, DEFAULT_VALUE);
 }
 protected long getThreshold(String name) {
   String threshold = getPropertyValue(name, "threshold");
   return Utils.toLong(threshold, DEFAULT_THRESHOLD);
 }