private static Map<String, String> propertiesToMap(Properties properties) {
    Map<String, String> map = new HashMap<>();
    properties.stringPropertyNames().forEach(name -> map.put(name, properties.getProperty(name)));
    return map;
  }
Convenience method to convert Properties to a config map.
@param properties  The Properties to convert.
@return            The Map instance.
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaStreamSpec.java