Use Map#putAll instead of iterating over the entries.