protected static function validateVocabPrefix($prefix)
    {
        $prefix = trim($prefix);

        // If the vocabulary prefix is invalid
        if (!strlen($prefix)) {
            throw new RuntimeException(
                sprintf(RuntimeException::INVALID_VOCABULARY_PREFIX_STR, $prefix),
                RuntimeException::INVALID_VOCABULARY_PREFIX
            );
        }

        return $prefix;
    }