question: protected void addResource ( List defaults , String bundleName ) { ResourceBundle bundle = ResourceBundle . getBundle ( bundleName ) ; for ( Enumeration keys = bundle . getKeys ( ) ; keys . hasMoreElements ( ) ; ) { String key = ( String ) keys . nextElement ( ) ; defaults . add ( key ) ; defaults . add ( bundle . getObject ( key ) ) ; } }
target:  Adds the all keys/values from the given named resource bundle to the defaults