[java] Using an instance of an object as a key in hashmap, and then access it with exactly new object?