protected function _getGrouperClient()
 {
     if (!isset($this->_grouperClient)) {
         $applicationConfig = EngineBlock_ApplicationSingleton::getInstance()->getConfiguration();
         $configReader = new EngineBlock_Group_Provider_ProviderConfig();
         $config = $configReader->createFromDatabaseFor($applicationConfig->defaultGroupProvider);
         $this->_grouperClient = Grouper_Client_Rest::createFromConfig($config->current());
     }
     return $this->_grouperClient;
 }
 /**
  * Create an aggregate of Group Providers from database configuration
  *
  * @static
  * @param $userId
  * @return void
  */
 public static function createFromDatabaseFor($userId)
 {
     $configReader = new EngineBlock_Group_Provider_ProviderConfig();
     $config = $configReader->createFromDatabaseFor();
     return self::createFromConfigs($config, $userId);
 }
 protected function _getProviderConfiguration($providerId)
 {
     $configReader = new EngineBlock_Group_Provider_ProviderConfig();
     return $configReader->createFromDatabaseFor($providerId)->current();
 }