bug-17886: Add a function to parse a system metadata document