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

@param map config map
@return return Environment instance