protected function bootstrapApp()
    {
        $namespace = $this->getUserNamespace();

        // Load service provider
        $serviceProvider = $namespace.'\\'.$namespace.'ServiceProvider';
        $hasServiceProvider = class_exists($serviceProvider);
        if ($hasServiceProvider) {
            $plugins = (array) $this->config->get('plugins.loaded');
            $plugins[] = $serviceProvider;
            $this->config->set('plugins.loaded', $plugins);
        }

        return $hasServiceProvider;
    }