function cacheApplication() {
        $this->log("Downloading application...");
        $app = Config::instance()->application->apiClient()->get("application", array("definition" => "true"));
        $this->cache(Application::cacheKey(), json_encode($app));
        $this->log("Application has been cached.");
        return $app;
    }