public function addType($identifier, $label, $formType, $options = array())
    {
        $typeManager = $this->container->get('admin.configuration.configtype_manager');
        $type = $typeManager->getRepository()->findOneByIdentifier($identifier);
        if (!$type) {
            $type = new ConfigType();
            $type->setIdentifier($identifier);
            $type->setTLabel($label);
            $type->setFormType($formType);
            if ( is_array($options) && count($options) ) {
                $type->setOptions(json_encode($options));
            }
            $typeManager->create($type);

            return true;
        }

        return false;
    }