supporting code for replica get

Change-Id: Iaf2423a4106a64bd12ba9d7b4dbadfaefc75e44c