Instead of copy/pasting this from MetaDataClient, make it public and call it here.