code: static Properties convertResourceBundleToProperties(ResourceBundle resource) {
          Properties properties = new Properties();
  
          Enumeration<String> keys = resource.getKeys();
          while (keys.hasMoreElements()) {
              String key = keys.nextElement();
              properties.put(key, resource.getString(key));
          }
  
          return properties;
      }
docs: Convert ResourceBundle into a Properties object.
  
  @param resource a resource bundle to convert.
  @return Properties a properties version of the resource bundle.