Without this modification we just load the object into the session, but we won't manage its state.
So, when we would change the object state to deleted, then we won't call the function to delete it.