you can actually assign this to be a new hashmap and then just putAll in the else clause.