issue #2397: Application::sharedApplication --> Application::getInstance and mark Application::sharedApplication as deprecated function.