Added function to get key value pairs hierarchy in persistor