Use updated metadata APIs.
Updated to use new object structure for site map data.