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 } ) ) ; } }
This method creates a java . util . Level object from a string with the level name .