issue #2397: Mark Application::sharedApplication as deprecated function.