protected String getDisplayNameOf ( Method e , T i ) { Class < ? > c = e . getDeclaringClass ( ) ; String key = displayNameOf ( i ) ; if ( key . length ( ) == 0 ) return c . getSimpleName ( ) + "." + e . getName ( ) ; try { ResourceBundleHolder rb = ResourceBundleHolder . get ( c . getClassLoader ( ) . loadClass ( c . getPackage ( ) . getName ( ) + ".Messages" ) ) ; return rb . format ( key ) ; } catch ( ClassNotFoundException x ) { LOGGER . log ( WARNING , "Failed to load " + x . getMessage ( ) + " for " + e . toString ( ) , x ) ; return key ; } catch ( MissingResourceException x ) { LOGGER . log ( WARNING , "Could not find key '" + key + "' in " + c . getPackage ( ) . getName ( ) + ".Messages" , x ) ; return key ; } }
Obtains the display name of the given initialization task