FORGE-1217: UIContext is now passed to getMetadata method