question: protected void registerEventHandlers ( ) { for ( PluginInfo item : this . plugins ) { try { @ SuppressWarnings ( "unchecked" ) Class < Plugin > clazz = ( Class < Plugin > ) Class . forName ( item . getClassName ( ) ) ; Plugin plugin = ( Plugin ) clazz . newInstance ( ) ; plugin . setPluginInfo ( item ) ; plugin . registerEventHandlers ( this . events ) ; item . setEnabled ( true ) ; } catch ( ClassCastException e ) { item . setEnabled ( false ) ; } catch ( ClassNotFoundException e ) { item . setEnabled ( false ) ; } catch ( IllegalAccessException e ) { item . setEnabled ( false ) ; } catch ( InstantiationException e ) { item . setEnabled ( false ) ; } } }
target:  register event handlers from all plugins.