protected function processVocab(\DOMElement $element, ContextInterface $context)
    {
        if ($element->hasAttribute('vocab') && ($context instanceof RdfaLiteContext)) {
            $defaultVocabulary = new Vocabulary($element->getAttribute('vocab'));
            $context = $context->setDefaultVocabulary($defaultVocabulary);
        }

        return $context;
    }