public static Level normalize ( Level level ) { if ( levelMap . containsKey ( level . intValue ( ) ) ) { return levelMap . get ( level . intValue ( ) ) ; } else if ( level . intValue ( ) >= Level . SEVERE . intValue ( ) ) { return Level . SEVERE ; } else if ( level . intValue ( ) >= Level . WARNING . intValue ( ) ) { return Level . WARNING ; } else if ( level . intValue ( ) >= Level . INFO . intValue ( ) ) { return Level . INFO ; } else { return Level . FINE ; } }
Normalizes the given level to one of those supported by Selenium .