public function getBundle(AbstractBundle $bundle, $default = false)
    {
        if ($default) {
            return $bundle;
        }
        $query = $this->getNewQuery();
        $query = $bundle->makeQueryFiltered($query);
        $settings = $query->pluck('value', 'name');
        $bundle->setEnableSetter(false);
        $bundle->load($settings);
        $bundle->setEnableSetter(true);
        return $bundle;
    }