WCP-324 : Fix hibernate error that happens sometimes when you try to upd...

...ate an object that has already left the transaction method.