code: public static Environment of(@NonNull Map<String, String> map) {
          var environment = new Environment();
          map.forEach((key, value) -> environment.props.setProperty(key, value));
          return environment;
      }
docs: Map to Environment
  
  @param map config map
  @return return Environment instance