protected function registerToHandler($name, $value, $crypt = false)
    {
        if (is_array($value) || is_object($value)) {
            $value = base64_encode(serialize($value));
        }

        if (true === $crypt) {
            $value = $this->getCrypt()->encode($crypt);
        }

        $this->getHandler()->write($name, $value);
    }