public static Properties convertBundleToProperties(ResourceBundle rb){
  Properties props=new Properties();
  for (Enumeration<String> keys=rb.getKeys(); keys.hasMoreElements(); ) {
    String key=keys.nextElement();
    props.put(key,rb.getString(key));
  }
  return props;
}

public static Properties convertBundleToProperties ( ResourceBundle rb ) { Properties props = new Properties ( ) ; for ( Enumeration < String > keys = rb . getKeys ( ) ; keys . hasMoreElements ( ) ; ) { String key = keys . nextElement ( ) ; props . put ( key , rb . getString ( key ) ) ; } return props ; }
method to convert a resourcebundle to a properties object .
