code: private Properties mapToProperties(Map<String, String> map) {
  		   Properties p = new Properties();
  		   for (Map.Entry<String,String> entry : map.entrySet()) {
  		     p.put(entry.getKey(), entry.getValue());
  		   }
  		   return p;
  		 }
docs: Legacy conversion.
  @param map
  @return Properties