Added persistence api

Change-Id: I965272e271a239af90b81b40bc15f173681756ad