Updated the getRelatedMetadata method to getRelatedObjects.