code: private Level createLevelByString(String levelString) throws IllegalArgumentException {
          try {
              return Level.parse(levelString.toUpperCase());
              //return WsLevel.parse(levelString.toUpperCase());
          } catch (Exception npe) {
              throw new IllegalArgumentException(getLocalizedParmString("CWTRA0013E", new Object[] { levelString }));
          }
  
      }
docs: This method creates a java.util.Level object from a string with the level name.
  
  @param levelString
  - a String representing the name of the Level.
  @return a Level object