You can use `$this->getApplication();` in instances of `JControllerBase`.