for ( GenericApplicationContext beanFactory : beanFactoryMap.values() ) {
if ( beanFactory.containsBean( beanId ) ) {
try {
bean = beanFactory.getBean( beanId );
} catch ( Throwable ex ) { // Catching throwable on purpose
throw new PluginBeanException( ex );
}
}
}
if ( bean == null ) {
throw new PluginBeanException( Messages.getInstance().getString(
"PluginManager.WARN_CLASS_NOT_REGISTERED", beanId ) ); //$NON-NLS-1$
}
return bean;
}