We need a map in the container. Map<Class, Value or List>
Whenever we add to the list. We check the last element which must
have multiClass = true.
On finalize we run through the list. and check last element in each list.
All of them must have multiClass = true;