code: public static void putPropertiesIntoConfiguration(Properties properties, Configuration configuration) {
      for (String name : properties.stringPropertyNames()) {
        configuration.set(name, properties.getProperty(name));
      }
    }
docs: Put all configuration properties in a given {@link Properties} object into a given
  {@link Configuration} object.
  
  @param properties the given {@link Properties} object
  @param configuration the given {@link Configuration} object