Pardon my bad english. I am trying to insert a list of a certain class into a hash map. The key should be the one of the fields in the list, in my case the id, and the value