public static void initializeMessages ( final String bundleName , final Class clazz ) { if ( System . getSecurityManager ( ) == null ) { load ( bundleName , clazz ) ; return ; } AccessController . doPrivileged ( new PrivilegedAction ( ) { public Object run ( ) { load ( bundleName , clazz ) ; return null ; } } ) ; }
Initialize the given class with the values from the specified message bundle .