protected function createContext(string $class): MappingContext
    {
        $definition = $this->definitionProvider->getDefinition($class);

        return new MappingContext($this, $definition);
    }