Changing from object.hashcode to object while storing references in hashset - [Bala]