protected function createOperationsFromValues(array $values)
    {
        // In the case of a 'set' or 'reset' operation all current group membership should be removed.
        if ($this->shouldRemoveCurrentGroups()) {
            $this->removeCurrentGroups();
        }
        // Only if this is not a reset operation, otherwise there is nothing left to do.
        if (!($this->getOperationType() == AttributeConverterInterface::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll())) {
            $batchType = $this->getBatchTypeForOperation();
            foreach ($values as $value) {
                $this->addOperation(parent::toLdap($value), $batchType);
            }
        }
    }