I am using a Collection (a HashMap used indirectly by the JPA, it so happens), but apparently randomly the code throws a ConcurrentModificati
Collection
HashMap
ConcurrentModificati
Try either CopyOnWriteArrayList or CopyOnWriteArraySet depending on what you are trying to do.