protected function getGenerator()
{
if (!isset($this->generator)) {
$this->generator = new Common\Output\Generator\Json($this->getMock('eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json\\FieldTypeHashGenerator', array(), array(), '', false));
}
return $this->generator;
}