persist and remove in bean