replaced merge with persists to fix problem of getting newly created id
from DB

Change-Id: I31be90a319b6529de5f976094e8045a2d5ce9ebb