As I understand it, there are a couple of ways (maybe others as well) to create a shallow copy of a Map in Java:
Map
Map data
Copy a map without knowing its implementation:
static final Map shallowCopy(final Map source) throws Exception { final Map newMap = source.getClass().newInstance(); newMap.putAll(source); return newMap; }