protected static LocaleInfo lookupLocaleInfo ( final String code ) { LocaleInfo info = locales . get ( code ) ; if ( info == null ) { String [ ] data = decodeLocaleCode ( code ) ; info = new LocaleInfo ( new Locale ( data [ 0 ] , data [ 1 ] , data [ 2 ] ) ) ; locales . put ( code , info ) ; } return info ; }
Lookups for locale info and creates new if it doesn t exist .