protected function getKeyEncoder($lockData)
    {
        if (isset($lockData['encoder']) && is_string($lockData['encoder'])) {
            $name = $lockData['encoder'];
        } else {
            $name = $this->config["encoder"];
        }

        try {
            $instance = $this->picoAuth->getContainer()->get($name);
        } catch (\Exception $e) {
            throw new \RuntimeException("Specified PageLock encoder not resolvable.");
        }

        return $instance;
    }