public ResourceBundle findResourceBundle ( String resourcePath , Locale locale , String versionRange ) { //if (ClassServiceBootstrap.repositoryAdmin == null) // return null; ResourceBundle resourceBundle = this . getResourceBundleFromBundle ( null , resourcePath , locale , versionRange ) ; if ( resourceBundle == null ) { Object resource = this . deployThisResource ( ClassFinderActivator . getPackageName ( resourcePath , true ) , versionRange , false ) ; if ( resource != null ) { resourceBundle = this . getResourceBundleFromBundle ( resource , resourcePath , locale , versionRange ) ; if ( resourceBundle == null ) { Class < ? > c = this . getClassFromBundle ( resource , resourcePath , versionRange ) ; if ( c != null ) { try { resourceBundle = ( ResourceBundle ) c . newInstance ( ) ; } catch ( InstantiationException e ) { e . printStackTrace ( ) ; // Never } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; // Never } catch ( Exception e ) { e . printStackTrace ( ) ; // Never } } } } } return resourceBundle ; }
Find resolve and return this ResourceBundle .