public static Locale createLocale( String localeCode ) {
    if ( Utils.isEmpty( localeCode ) ) {
      return null;
    }
    StringTokenizer parser = new StringTokenizer( localeCode, "_" );
    if ( parser.countTokens() == 2 ) {
      return new Locale( parser.nextToken(), parser.nextToken() );
    }
    if ( parser.countTokens() == 3 ) {
      return new Locale( parser.nextToken(), parser.nextToken(), parser.nextToken() );
    }
    return new Locale( localeCode );
  }
@Test
  public void createLocale_Null() throws Exception {
    assertNull( EnvUtil.createLocale( null ) );
  }