protected function createRequestInstance($requestName, $index, $type)
    {
        $class = $this->getClass($requestName);

        /** @var RequestInterface $request */

        return $this->requestRepositoryFactory->create($class, $index, $type, $this->serializer);
    }