public static Res use ( String baseName , String locale ) { String resKey = baseName + locale ; Res res = resMap . get ( resKey ) ; if ( res == null ) { res = new Res ( baseName , locale ) ; resMap . put ( resKey , res ) ; } return res ; }
Using the base name and locale to get the Res object which is used to get i18n message value from the resource file .