code: public static Properties convertToProperties(final Map<String, String> map) {
          final Properties properties = new Properties();
          if (map != null) {
              for (Entry<String, String> entry : map.entrySet()) {
                  properties.setProperty(entry.getKey(), entry.getValue());
              }
          }
          return properties;
      }
docs: Simple utility method to help with the migration from {@code Map<String, String>}
  to {@code Properties}.
  
  @deprecated Should migrate to {@code Map<String, String>} signatures.
  @param map
  @return