Inheritance: extends eZ\Publish\Core\REST\Common\Output\ValueObjectVisitor
 /**
  * Visit struct returned by controllers
  *
  * @param \eZ\Publish\Core\REST\Common\Output\Visitor $visitor
  * @param \eZ\Publish\Core\REST\Common\Output\Generator $generator
  * @param \eZ\Publish\Core\REST\Server\Values\CreatedObjectState $data
  */
 public function visit(Visitor $visitor, Generator $generator, $data)
 {
     parent::visit($visitor, $generator, $data->objectState);
     $visitor->setHeader('Location', $this->router->generate('ezpublish_rest_loadObjectState', array('objectStateGroupId' => $data->objectState->groupId, 'objectStateId' => $data->objectState->objectState->id)));
     $visitor->setStatus(201);
 }