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