private static Properties mapToProperties(Map<String, String> map) {
    Properties props = new Properties();
    props.putAll(map);
    return props;
  }
Convenience method to convert a config map to Properties.
@param map The Map to convert.
@return    The Properties instance.
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaStreamSpec.java