Handling InvalidItemStateException
According to the doc the sesion's save() method can throw InvalidItemStateException exception.
It means that some item that was modified in current session also was modified from other thread and already saved. The transient space of the session cannot be saved
The quesion is what is a best practice in such case? Some code would be really appriciated. I cannot find any examples