public function render(NodeInterface $node) { $flowQuery = new FlowQuery(array($node)); return $flowQuery->closest('[instanceof Neos.Neos:Document]')->get(0); }