make explicit copy of java hashmap