("Wrong type supplied when attempting to set log level."+ " Correct type to use is String.");
("Wrong type supplied when attempting to set log level."+ " Correct type to use is String. " + obj + " " + obj.getClass().getName());
  private void checkLogLevel(Dictionary cfg)     throws ConfigurationException, IllegalArgumentException{	    String filter=null;    try{      filter = ((String)cfg.get(L_FILTER)).trim();    }catch(ClassCastException cce){      throw new IllegalArgumentException	("Wrong type supplied when attempting to set log level."+	 " Correct type to use is String.");    }    if(filter==null){      throw new IllegalArgumentException	("No log level given. Please supply a valid log level.");    }    int filterVal=LogUtil.toLevel(filter, -1) ;    if(filterVal == -1){      throw new ConfigurationException	(L_FILTER, "Undefined log level <" + filter + ">." );    }    if(filterVal == 0){       cfg.put(L_FILTER, LogUtil.fromLevel(LogService.LOG_WARNING));     }  }