public function getSecurity($context)
    {
        if (array_key_exists($context, $this->instances))
        {
            return $this->instances[$context];
        }

        $configuration = $this->getConfigurationFor($context);
        $this->addPermissionsFactoryListener($context);

        return $this->instances[$context] = $this->getSecurityFactory()->create($context, $configuration);
    }