adapt to change of the shared variable api

Change-Id: I340deab4347c6cc682ed9ccb2fb1261b15b13d8b