public function getHydratorClass($class)
    {
        $inflector = $this->configuration->getInflector();

        $realClass = $inflector->getUserClassName($class);
        $hydratorClass = $inflector->getGeneratedClassName($realClass, ['generator' => get_class($this)]);

        if (!class_exists($hydratorClass)) {
            $ast = $this->generateAst($realClass, $hydratorClass);

            $this->configuration->getGeneratorStrategy()->generate($ast);
            $this->configuration->getAutoloader()->__invoke($hydratorClass);
        }

        return $hydratorClass;
    }