ensured that Apple specific code is run using reflection