WCP-324 : Fix hibernate error that happens sometimes when you try to update an object that has already left the transaction method