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 using a ConcurrentHashMap instead of a plain HashMap
ConcurrentHashMap