public static Map < String , String > copyMap ( Map < String , String > originalMap ) { Objects . requireNonNull ( originalMap , Required . MAP . toString ( ) ) ; return new HashMap <> ( originalMap ) ; }
Copies a given map to a new map instance