protected function remapPublishStates(array $config, ContainerBuilder $container)
    {
        $publishStates = array();

        foreach ($config as $role) {
            $publishStates[$role['value']] = $role['name'];
        }

        $container->setParameter('manhattan.publish.states', $publishStates);
    }