public function buildService(
        $serviceClass,
        ConfigResolverInterface $resolver,
        PageGateway $storageGateway,
        ContentService $contentService
    ) {
        $pageSettings = $resolver->getParameter('ezpage');
        /** @var $pageService \eZ\Publish\Core\FieldType\Page\PageService */
        $pageService = new $serviceClass(
            $contentService,
            $pageSettings['layouts'],
            $pageSettings['blocks']
        );
        $pageService->setStorageGateway($storageGateway);

        return $pageService;
    }