public function denormalizeValue(array $data)
    {
        $processed = array();

        foreach ($data as $docId => $content) {
            $cloned = $content;
            $keys = array_keys($cloned);
            $ofType = array_pop($keys);
            $asArray = ('array' === $ofType)? true : false;

            $value = $content[$ofType];

            Assertion::isJsonString($value, 'Invalid json string in registry');

            $processed[$docId] = json_decode($value, $asArray);
        }

        return $processed;
    }