code: public static Properties toProperties(Map<?, ?> _map) {
          Properties props = new Properties();
          props.putAll(_map);
          return props;
      }
docs: Convertes a map to a Properties object.
  @param _map
  @return Properties object