@Override
 public AlertThreshold getLevel() {
   if (AlertThreshold.DEFAULT.equals(level)) {
     return defaultLevel;
   }
   return level;
 }
 public void loadFrom(Configuration conf) {
   this.setEnabled(conf.getBoolean("pscans." + getClass().getCanonicalName() + ".enabled", true));
   this.setLevel(
       AlertThreshold.valueOf(
           conf.getString(
               "pscans." + getClass().getCanonicalName() + ".level",
               AlertThreshold.DEFAULT.name())));
 }